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

Refactor cron lifecycle #1119

Merged
merged 11 commits into from
Jun 2, 2022
Merged

Refactor cron lifecycle #1119

merged 11 commits into from
Jun 2, 2022

Conversation

vcastellm
Copy link
Member

@vcastellm vcastellm commented May 29, 2022

  • Clear entries on start
  • Do not init the Cron more than once
  • Wait for jobs to finish on graceful stop
  • Remove the EntryJobMap refactor it to EntryJob tuple.

supersede #1112

* Clear entries on start
* Do not init the Cron more than once
* Wait for jobs to finish on graceful stop
@vcastellm vcastellm requested a review from yvanoers May 29, 2022 22:15
Copy link
Collaborator

@yvanoers yvanoers left a comment

Choose a reason for hiding this comment

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

Basically fine, but I have questions.

dkron/scheduler.go Show resolved Hide resolved
dkron/scheduler.go Outdated Show resolved Hide resolved
dkron/scheduler.go Show resolved Hide resolved
Victor Castell added 5 commits May 30, 2022 22:56
@vcastellm vcastellm added the 3.x label May 31, 2022
@vcastellm vcastellm requested a review from yvanoers May 31, 2022 16:13
dkron/scheduler.go Outdated Show resolved Hide resolved
dkron/scheduler.go Outdated Show resolved Hide resolved
@vcastellm vcastellm requested a review from yvanoers June 1, 2022 08:18
Copy link
Collaborator

@yvanoers yvanoers left a comment

Choose a reason for hiding this comment

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

LGTM!

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

Successfully merging this pull request may close these issues.

2 participants