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

Add option to run immediately or wait 'interval' second in TimerTask.execute #784

Merged
merged 3 commits into from
Jun 22, 2018

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Jun 22, 2018

This PR adds an option to run immediately or wait 'interval' seconds in TimerTask.execute.

When scheduling a recurrent job, we might want to delay the first execution 'interval' seconds instead of running it immediately.

This is going to be used in the batching policy when scheduling reports to backend. In that case, we don't need to report immediately, because when scheduling the task, the set of pending reports will be empty.

@davidor davidor requested a review from a team as a code owner June 22, 2018 16:15
@davidor davidor merged commit cb7dbcc into master Jun 22, 2018
@davidor davidor deleted the opt-to-run-now-timer-task-execute branch June 22, 2018 16:47
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.

2 participants