Skip to content
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

How to stop/terminate a long-running job. Deleting the job doesn't do the trick #573

Open
gabriels1234 opened this issue Feb 27, 2023 · 2 comments

Comments

@gabriels1234
Copy link
Contributor

Hi,

I was wondering if django-rq provides a way to "terminate" a running job.
For Jobs that take hours, deleting the job would not make the trick. or is it that it's a limitation from RQ?

Thanks!

@gabriels1234
Copy link
Contributor Author

Any guesses?
@selwin Should I investigate and try to make it happen if possible? (i.e adding an option to "stop/terminate" a job?)

@selwin
Copy link
Collaborator

selwin commented Mar 10, 2023

@gabriels1234 sorry I just saw this. RQ actually provides a way to stop a job that's currently executing. https://python-rq.org/docs/jobs/#stopping-a-currently-executing-job

My advice would be to add a button to send a stop job command in job/worker detail page.

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

No branches or pull requests

2 participants