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

Expiring jobs #41

Open
greenbigfrog opened this issue Feb 12, 2020 · 3 comments
Open

Expiring jobs #41

greenbigfrog opened this issue Feb 12, 2020 · 3 comments

Comments

@greenbigfrog
Copy link

Thanks for all the work that's gone into this.
One feature I'd like to see added would be expiring jobs. If a job can't/isn't processed within/until X, it won't run.
Example: if I add a job to the queue, I only want it to run within the next 30 seconds. If the worker is not running or doesn't process the job within 30 seconds, it shouldn't work the job.

I'll look into implementing this myself sometime the next week.

@robacarp
Copy link
Collaborator

@greenbigfrog thanks for looking and jumping in!

This idea fits into a broad category of a pre and post-exec hooks I've been eyeing adding. 🌵 Eventually, I'd like to move the throttling code into a pre-exec hook as well, which can be included into a Job class as needed.

@greenbigfrog
Copy link
Author

greenbigfrog commented Feb 12, 2020 via email

@robacarp
Copy link
Collaborator

Sorry, no

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

No branches or pull requests

2 participants