Jobs stuck in inactive state
See original GitHub issueJobs get stuck in the inactive state fairly often for us. We noticed that the length of q:[type]:jobs
is zero, even when there are inactive jobs of that type, so when getJob calls blpop
, there is nothing to process.
It looks like this gets set when a job is saved and the state is set to inactive using lpush q:[type]:jobs 1
. We’re wondering if this is failing in some cases and once the count is off, jobs remain unprocessed.
Has anyone else seen this issue?
Issue Analytics
- State:
- Created 11 years ago
- Comments:159 (10 by maintainers)
Top Results From Across the Web
Child jobs going to inactive status while box is in running state.
We are facing an issue where the child jobs are in INACTIVE state when the box comes in RUNNING STATE, due to which...
Read more >How to reset a job status to inactive? - autosys
First time J0 failed so J1 is currently under status "failure". This is fine. Anyway I'd like now to reset its status so...
Read more >Why is my AWS Batch job stuck in RUNNABLE status?
AWS Batch moves a job to RUNNABLE status when the job has no outstanding dependencies and is ready to be scheduled to a...
Read more >Database Mail Queue stuck in INACTIVE State - can't get ...
PS: There's nothing like discovering a sql agent job has been silently failing because the failure notification email wasn't getting sent...
Read more >SI63216 - OSP QZDASOINIT JOBS STUCK IN JOBLOG ...
OSP QZDASOINIT JOBS STUCK IN JOBLOG PENDING STATE, ... to be done (the prestarted jobs are already inactive).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@theoutlander try bull which has a similar API to Kue, and if you need help ask in the gitter channel: https://gitter.im/OptimalBits/bull The reason I wrote bull in the first place was due to the stuck jobs issue.
If you really care about this issue, latest bull is really at par feature wise with kue but with a non polling, and mostly atomic design, why wait to kue 1.0 when you can use bull? 😃 https://www.npmjs.com/package/bull
DISCLAIMER, I am the author of the package, I started it out of the frustration of some of the long standing issues with kue, which still today are not completely fixed, and can tell by experience that it is not completely trivial to rewrite everything using lua scripts and blocking redis calls…