question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jobs stuck in inactive state

See original GitHub issue

Jobs 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:closed
  • Created 11 years ago
  • Comments:159 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
manastcommented, Sep 11, 2017

@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.

3reactions
manastcommented, Mar 1, 2017

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found