nice video. Note that the failling jobs probably have nothing to do with the queue/predis/horizon: It seems to me that you are on a free Mailtrap plan which is ratelimited to two messages per 10sec.
Please help!! Getting below error while using predis queue Predis\Connection\ConnectionException No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379] Thanks in advance
I don't appreciated your comment. English native speaking people should try to understand like we do when you came in our country and try to speak our language; we do not stress strangers about pronunciations !
protected function gate(): void { Gate::define('viewHorizon', function ($user) { return in_array($user->number, [ '1111111111' ]); }); } } i try this and when i login from another number i can still access the /horizon can you please help me...
when i run php artisan horizon it gives Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()
if u get Error : Connection refused [tcp://127.0.0.1:6379] Follow the steps in linux : 1> sudo apt-get update 2> sudo apt-get install redis-server 3> sudo systemctl restart redis.service
Hi, Can I launch multiple "VPS" of the same copy of laravel so I can "load balance" the work load" I'm currently running on only 1 vps but it's overloaded , I was thinking of using queue and launch more of the same copy of laravel (snapshot , launch) The worker should take from the "main queue" and update the database accordingly? Is that a standard practice to launch more workers?
LARAVEL HORIZON DOES NOT WORK ON WINDOWS STOP TRYING~!, dualboot and install ubuntu if you want, you won't succeed this on windows. even if you get ext-pcntl to work, still need ext-posix also. newer redis versions are not easy to install on windows if you need redis on windows learn docker and use docker run --name rdb -p 6379:6379 redis docker exec -it rdb redis-cli php-redis also cannot be installed on windows you can use predis but thats NOT enough to use horizon. good luck friends
yeap this is a good solution, however used to run the horizon directly on windows, just without it on background with a supervisor, my php artisan horizon used to work however it suddenly stopped
Hello sir does horizon have an api route? i wanted to make a custom ui and integrate it with my admin panel. my admin panel is a separate vuejs project.
Hi, In my project with horizon job was completed, but dont sent email and also that not return any error. i am using smtp for sending mail. please suggest me any solution.
test sending email out of job. If job executed, mail was sent. If mail was not recevied the problem is not related to job and laravel and horizon and redis. Check what happens after sending an email in a controller, without using jobs.
Hi... Thank you for sharing the nice tutorial. I used redis cache in my application but it really very slow compare to file cache driver. Is there any thing to update. Could you please please suggest to speed up the application when using redis... Thank you
nice video.
Note that the failling jobs probably have nothing to do with the queue/predis/horizon: It seems to me that you are on a free Mailtrap plan which is ratelimited to two messages per 10sec.
You are right. I was also thinking about why jobs are failing. Now I get it.
correct.
Made for a nice example scenario when things "go wrong"
why i got this issue 403
Forbidden???
Please help!!
Getting below error while using predis queue
Predis\Connection\ConnectionException
No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379]
Thanks in advance
Hey sarthak, have you found solution to process jobs without failure,
I'm looking for solutions, can please post part 2 if you found any solution.
failure is not due to laravel or horizon. If the php code fails, the job fails.
It starts at 5:40 😅
please learn to speak a correct "th", please... !
I don't appreciated your comment. English native speaking people should try to understand like we do when you came in our country and try to speak our language; we do not stress strangers about pronunciations !
And yes, my english grammar is near to an horror film
protected function gate(): void
{
Gate::define('viewHorizon', function ($user) {
return in_array($user->number, [
'1111111111'
]);
});
}
}
i try this and when i login from another number i can still access the /horizon
can you please help me...
It was exiting to see which errors you get. 🙄
hahah yeahh it sometimes get error
when i run php artisan horizon it gives Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()
Hey did you get the solution?? I am still struggling
you must need to install/enable pcntl plugin in php.
horizon requires pcntl that is not available under windows. If not using windows, simply install pcntl extension to your php and enable it
How to solve the issue of pcntl on windows . Please help :)
There is absolutely no solution to this. Windows and php are not so good friends
if u get Error : Connection refused [tcp://127.0.0.1:6379]
Follow the steps in linux :
1> sudo apt-get update
2> sudo apt-get install redis-server
3> sudo systemctl restart redis.service
Thanks Brother.
Hi,
Can I launch multiple "VPS" of the same copy of laravel so I can "load balance" the work load"
I'm currently running on only 1 vps but it's overloaded , I was thinking of using queue and launch more of the same copy of laravel (snapshot , launch)
The worker should take from the "main queue" and update the database accordingly? Is that a standard practice to launch more workers?
LARAVEL HORIZON DOES NOT WORK ON WINDOWS
STOP TRYING~!, dualboot and install ubuntu if you want, you won't succeed this on windows.
even if you get ext-pcntl to work, still need ext-posix also.
newer redis versions are not easy to install on windows
if you need redis on windows
learn docker and use
docker run --name rdb -p 6379:6379 redis
docker exec -it rdb redis-cli
php-redis also cannot be installed on windows
you can use predis but thats NOT enough to use horizon.
good luck friends
yeap this is a good solution, however used to run the horizon directly on windows, just without it on background with a supervisor, my php artisan horizon used to work however it suddenly stopped
Hello sir does horizon have an api route? i wanted to make a custom ui and integrate it with my admin panel. my admin panel is a separate vuejs project.
By the way , why jobs are failed?so this is not safe for production?
Jobs are failing because of mailtrap limitation. not because of horizon or redis
@@mohamedshuaau632 oh okk got it...thanks
Can anyone tell me which font is this in VScode ?
do not sending the mail to my mailtrap, even the code works normally
Great job. I'm also trying to install horizon for my lumen 7.x project. Please explain how to do this?
Hi, In my project with horizon job was completed, but dont sent email and also that not return any error. i am using smtp for sending mail. please suggest me any solution.
test sending email out of job. If job executed, mail was sent. If mail was not recevied the problem is not related to job and laravel and horizon and redis. Check what happens after sending an email in a controller, without using jobs.
Hi... Thank you for sharing the nice tutorial. I used redis cache in my application but it really very slow compare to file cache driver. Is there any thing to update. Could you please please suggest to speed up the application when using redis... Thank you
@Bhaskar I am using Redis since 2019, and I never feel it slow. there must be some configuration and server resources issue in case of speed
thank you, very helpful
Which font is this in IDE ?
very well friend. you are awesome
Nice tutorial. Btw, I really like your theme. asking silly, can you name it?
Its material theme with operator mono font
I can't able to install horizon in my environment
Why this is happening?
what error you are getting
@@Bitfumes - laravel/horizon v4.0.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
Why are the jobs being failed?
because mailtrap is rate limited to only 3 mail in a span of 10 seconds