Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stuck Kue Job #1109

Open
shriramshankar opened this issue Sep 7, 2017 · 8 comments
Open

Stuck Kue Job #1109

shriramshankar opened this issue Sep 7, 2017 · 8 comments

Comments

@shriramshankar
Copy link

shriramshankar commented Sep 7, 2017

I have seen some posts on jobs getting stuck in inactive status. eg. here #660
. The Kue documentation suggests that workaround for this is to call the "watchStuckJobs" function. I have also seen some posts where #1032 and #1075, where the recommendation is not to use "watchStuckJobs". Wondering, how I would troubleshoot the stuck job issue?

@btok
Copy link

btok commented Sep 12, 2017

+1

@yongdange
Copy link

So far, we have the same issue, after running a couple of days, the queue stops to process the tasks.

@behrad
Copy link
Collaborator

behrad commented Sep 30, 2017

I have seen some posts on jobs getting stuck in inactive status. eg. here #660
. The Kue documentation suggests that workaround for this is to call the "watchStuckJobs" function. I have also seen some posts where #1032 and #1075, where the recommendation is not to use "watchStuckJobs". Wondering, how I would troubleshoot the stuck job issue?

Have you also tested with v1 branch?

@DipakTechifySolutions
Copy link

@behrad : can you provide me an answer of my issue? #1122

@pencilcheck
Copy link

pencilcheck commented Nov 29, 2017

I get a lot of inactive jobs and active jobs, and they are stuck and not moving after leaving it overnight. All tasks are 0%. Sometimes to resume running all I need is to manually restart some tasks in each queue, not working all the time but why? And why is it stuck like that?

@cristianfd
Copy link

cristianfd commented Dec 21, 2017

I've the same problem as @hc-romens but my problem is after 5-10 jobs processed (the active queue is empty and the inactive is with jobs). The inactive queue works if I click on reset button or the job ttl expires (I don't know if the ttl affects inactive jobs).
I pulled the master branch and the problem persist. Is the v1 branch different than master branch? @behrad
@pencilcheck maybe your problem is in your code because the workers are 'working' (although they do nothing). First clean the active queue and then worry about the inactive queue.

@cristianfd
Copy link

About 'watchStuckJobs': I've tested manually (executing every command of the process with LUA) and the result is that all is OK (the watchStuckJobs do nothing because queue and pending are the same value).
Maybe the worker is not notifying that it is unoccupied?

@rpavez
Copy link

rpavez commented Feb 7, 2018

I'm having the same issue, after some time it stop processing jobs, if I restart the process it resume processing jobs.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants