I wrote new schedule and pulled it to test server and it works perfectly, BUT when I pulled it to production it does not work. I watched metrics in laravel-horizon and there was not new Job. So I decided that I had a bit processes therefor I changed my horizon.php processes from 3 to 5, BUT it changed to 10. Also I cleared my config and cache and metrics became empty, and some my old job does not work now too.
Asked
Active
Viewed 696 times
2
-
What is a name of the queue? Is it new so you do not create new queue worker for example? https://laravel.com/docs/8.x/queues#supervisor-configuration – doubleui Oct 13 '20 at 07:56
-
did you restart the queue workers? – lagbox Oct 13 '20 at 07:59
-
In case of @lagbox comment: `sudo supervisorctl reread` `sudo supervisorctl update` `sudo supervisorctl start laravel-worker:*` – doubleui Oct 13 '20 at 08:00
-
I'm guessing the only difference between your local and production environments are the .env file and the queue worker. Can you switch the production driver to sync? Jobs are being processed then, then you have a worker issue. You can also try dispatching the job as soon as you create it, again, if it works it could be a worker issue. Edit your question with the driver details as well as your worker and the job payload – CodeJunkie Oct 13 '20 at 08:04
-
Temporarily stop supervisor and do the usual `php artisan queue:work` -- also make sure you don't have any typos in your supervisor config, if you do, correct them then restart the supervisor service – CodeJunkie Oct 13 '20 at 08:05
-
@doubleui I did not create new queue but it works in test – Aleks Oct 13 '20 at 08:25
-
@lagbox Yeah, I did. – Aleks Oct 13 '20 at 08:25
-
@doubleui I did it too. BUT It wrote that had not update – Aleks Oct 13 '20 at 08:26
-
@CodeJunkieUnfortunately, I can not to add some another information, thank you. I will do that you wrote, also env files are absolutely identical – Aleks Oct 13 '20 at 08:37