-
Notifications
You must be signed in to change notification settings - Fork 94
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
job poll intervals now host based on global.rc #2049
job poll intervals now host based on global.rc #2049
Conversation
1e1fa12
to
c9e84f7
Compare
Poll jobs on job host if intervals are set and the delays are done, regardless of task communication method. Rename `TryState` to `TaskActionTimer`. Remove `PollTimer`, and use `TaskActionTimer` for poll timers.
c9e84f7
to
2d704e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of comments, otherwise good, tests as working.
'submission polling intervals': vdr( | ||
vtype='interval_minutes_list', default=[]), | ||
'execution polling intervals': vdr( | ||
vtype='interval_minutes_list', default=[]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You haven't removed these items from their original locations in the config dict (the deprecation mechanism doesn't require the originals to be kept).
@@ -120,16 +119,17 @@ def is_timeout_set(self): | |||
"""Return True if timeout is set.""" | |||
return self.timeout is not None | |||
|
|||
def next(self): | |||
def next(self, no_exhaust=False): | |||
"""Return the next retry delay if there is one, or None otherwise.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc-string now inaccurate if no_exhaust
is True
- repeats the last delay interval indefinitely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, thanks.
Allow submission and execution polling intervals per host on
global.rc
. This allows regular health checks to be site configurable regardless of task communication methods.Rename
TryState
toTaskActionTimer
. RemovePollTimer
, and useTaskActionTimer
for poll timers.