Replies: 2 comments
-
$this->logInfo("Step 3 $jobId"); # Stuck at this step Now I'm not sure if the job stuck at this step or not :( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe memory?? I gave up with supervisor for production... pm2 is the way!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm developing a system that run a lot of jobs per day (about more than 300k jobs / day). This is my structure:
Each job has a queue handle that configured at supervisord.conf like this
Job A call API to another host, then fire an event with responded data, Job B catch this data and insert/update them to DB, Job C catch Job B result then insert / update to DB (to another table)...
When I start docker container, everything was running fine without any error, but after some time (a few hours later), a random job was stuck without any exception (no log, no exception, no timeout error), the job is just displayed as "Processing job B (or C, or D...)" forever until I restart docker container manually. Because of stuck job, supervisor process was also stuck, that resulted in thousands of Job in the queue without any process to handle them (because all processes were stuck in previous jobs)
This is an example job:
And this is UpdateProductsFromCrawler execute function:
As you can see, the job is stuck at DB::beginTransaction(); to the end of the script, I don't know why, because a lot of same jobs were processed successfully before stuck randomly (it could be stuck at job A, job C, D...or any job except Job A)
I also has a schedule command that restart queue after 15 minutes, but not work, queue jobs are still be stuck randomly:
Thanks for reading my long post, I'm glad to hear any news or direction from you. I tried to describe more detail but I'm not good at English, so please tell me if you need any further information. Please help
Beta Was this translation helpful? Give feedback.
All reactions