-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
job is not dispatching #29298
Comments
Use the Job Events https://laravel.com/docs/5.8/queues#job-events to perform a detailed tracking; there two more which are not in the docs and might be useful:
|
Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue and we'll re-open this issue. |
I have the same problem. |
same here |
I'm having the same issue. I can't tell if the jobs are never dispatched, or if they are dispatched but not picked up. |
Well in my case i have done something wrong with the controllers so my job was never dispatching because i was never calling it . I know its a stupid answer but make sure you are dispatching the job first before you dive deeper . |
I have the same issue |
In my case, it was an issue with redis memory. |
I was having a similar issue with inconsistency in dispatching when using the database queue driver. Most jobs were dispatching, but some in particular weren't. Fixed by getting rid of uniqueId() and ShouldBeUnique implementation. I may have been implementing it wrong, but didn't need it anyway. |
Today, I had a similar problem on my computer while working on a project. I found out that the issue was caused by using The specific task I was dealing with needed to be unique, following the In simple terms, the queue handler didn't get the signal that the process had ended, so it didn't clear the necessary cache. For unique tasks, the application creates a cache key using the formula: To fix the problem, I ran dump($foo);
return; This change solved my problem. |
I am running into this. A controler has:
Job has:
The log shows the log entry from the controller but not the job itself. I had thought based on searching that the ShouldBeUnique is causing the issue but it is not.
Issuing the artisan cache:clear does resolve it but not helpful. I add that as a cron job to execute every hour. I changed from file cache to redis cache and am testing now, but I really need ::dispatch to work all the time |
please elaborate, I'm facing the same issue, clear cache, optimize, nothing helps, jobs dont get dispatched :( |
Description:
Roughly 10,000 jobs are queued and processed per hour. I notice that some jobs are not dispatched. I assume that a lot more jobs are not dispatched but these particular jobs are important so I put logging into them
I consistently do not receive some of the jobs and I don't receive any errors reported. So I have to assume that the jobs are not dispatched to Horizon to process.
I don't know if this has to do with Redis 5.0.4 (#29029 ). Out of 10,000 jobs are queued per hours, roughly 100 of important jobs are queued. Roughly 20 of them are not dispatched. That is roughly 20 out of 10,000 jobs I know for sure that do not dispatch. The number of non-dispatched jobs may higher.
Any suggestions?
Steps To Reproduce:
Use Redis Queue with Horizon, create a script that queues roughly 200 jobs per minutes. some of the jobs will not dispatch
The text was updated successfully, but these errors were encountered: