generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: cron jobs #1155
Merged
Merged
feat: cron jobs #1155
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6a0b46b
feat: cron job service
matt2e f1b31a0
update comments
matt2e 8d07e5b
update comments and test
matt2e 25c85be
update string interpolation
matt2e 2704ee0
Return errors when creating cron jobs for a new deployment
matt2e 72953c0
Fix issue handling error when calculating next execution
matt2e 01e8fa4
use sumtype for cronjob events
matt2e 63568df
rename reset to sync
matt2e eb75746
add comment
matt2e bbb6736
move cron job type to models package
matt2e 21ee09d
Make State private and add comment
matt2e aa04c43
originSource renamed to requestSource
matt2e 3fa699f
remove code that is no longer needed
matt2e 03d8bdd
add test for hash ring
matt2e 65de872
fix lint
matt2e 5938f51
add integration test for cron jobs that uses actual db
matt2e d96d920
scope logger to cron
matt2e File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Rather than scheduledtask and cronjob services both polling the db for the controller list to update their hashrings, I've centralised the polling into the controller, which then broadcasts it to listeners