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

Implement TTR #2

Open
3 tasks
igorsantos07 opened this issue Jul 23, 2016 · 0 comments
Open
3 tasks

Implement TTR #2

igorsantos07 opened this issue Jul 23, 2016 · 0 comments
Milestone

Comments

@igorsantos07
Copy link
Contributor

igorsantos07 commented Jul 23, 2016

Currently there's no implementation of time-to-run hooks. Jobs may timeout and we will never know?

Possible implementation: when a job is reserved, turn the delay into ttr: if there's no TTR, delay becomes zero; if there's TTR, delay becomes time()+TTR. Finally, peeks/reserves will return jobs with state=reserved AND delay<time(), but won't return any reserved job with delay=0 - meaning a job that gets reserved with no timeout will be reserved only once, but if it's reserved with a timeout and it expires, it can be reserved again, and if it's ready, it can be reserved as soon as its delay expired.

  • implement TTR behaviour
  • implement Job::touch()
  • include this on tests
@igorsantos07 igorsantos07 modified the milestone: 1.0 Jul 23, 2016
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

1 participant