-
Notifications
You must be signed in to change notification settings - Fork 867
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
When jobs.process was interrupted by errors, the job still in active state #53
Comments
hmm there is a API for max attempts, however that defaults to 1 so if you get an error it should stay in the failure state, is that not happening? |
Actually,I use ctrl+c to interrupt the jobs.process scripts. So the states always to be active. |
Got the state change PUT '/job/:id/state/:state' Job.get(id, function(err, job){ BTW, if the web UI has some action to change the state, that would be nice ~ update! found that ! just click the every job states in the web UI,which you can get selections; |
yup, it's a little obscure since it's just the text, I should probably make that more obvious lol |
Is it possible to somehow change the state of a job automatically if it's been "active" for a long period of time? I have kue running a thousand jobs at any given time. If I interrupt it, those jobs stay in the queue forever. My host kills and restarts my instances regularly, so I end up overflowing redis after about a day and have to manually clear it. |
not with kue's api really, you'd have to do some direct redis stuff, or do some cron job style lua scripting etc |
What about having another job run every hour or so that searches queued jobs with the |
I dont think we have progress updating it ATM, I cant remember, but either way yeah that should be a good indication of a stuck job |
So how to clear those jobs state,which I wanna put them back to the Queued state.
If there could be some action in web UI is great, and API is also ok.
And also for the failed jobs.
The text was updated successfully, but these errors were encountered: