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

Feature to support graceful timeout #585

Open
Salaah01 opened this issue Apr 14, 2023 · 1 comment
Open

Feature to support graceful timeout #585

Salaah01 opened this issue Apr 14, 2023 · 1 comment

Comments

@Salaah01
Copy link

Let's suppose a context manager exists inside a function which is being run as part of the job. If the job times out, the cleanup __exit__ code isn't executed and the entire job is killed.

Can I request a feature where we have a graceful_timeout parameter as well as a timeout parameter. The idea being that graceful_timeout causes an normal interruption whereas the timeout continues to completely kill the program.

That will then give the program time to run some clean up code.

@selwin
Copy link
Collaborator

selwin commented May 2, 2023

I'd love to have this feature if it can be implemented in a clean way. This would need to be implemented in RQ first though. Mind opening an issue http://github.com/rq/rq ?

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