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

job poll intervals now host based on global.rc #2049

Merged
merged 3 commits into from
Oct 31, 2016

Conversation

matthewrmshin
Copy link
Contributor

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 to TaskActionTimer. Remove PollTimer, and use
TaskActionTimer for poll timers.

@matthewrmshin matthewrmshin added this to the next release milestone Oct 14, 2016
@matthewrmshin matthewrmshin self-assigned this Oct 14, 2016
@matthewrmshin matthewrmshin force-pushed the globalrc-job-poll-intervals branch 2 times, most recently from 1e1fa12 to c9e84f7 Compare October 19, 2016 09:42
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.
@matthewrmshin matthewrmshin force-pushed the globalrc-job-poll-intervals branch from c9e84f7 to 2d704e2 Compare October 19, 2016 11:31
@matthewrmshin
Copy link
Contributor Author

@hjoliver @arjclark this one is now good for review.

Copy link
Member

@hjoliver hjoliver left a 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=[]),
Copy link
Member

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."""
Copy link
Member

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?

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, thanks.

@hjoliver hjoliver merged commit 4e68d7d into cylc:master Oct 31, 2016
@matthewrmshin matthewrmshin deleted the globalrc-job-poll-intervals branch October 31, 2016 08:37
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

Successfully merging this pull request may close these issues.

3 participants