-
Notifications
You must be signed in to change notification settings - Fork 12
fix: Add task leases to prevent a race scheduling the same task multiple times (fixes #105). #98
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1e42d4b
Add scheduler lease table
sitaowang1998 7dc9c87
Remove unused scheduler state
sitaowang1998 37fbc5f
Remove unnecessary scheudle state change
sitaowang1998 3d198d1
Format code
sitaowang1998 c1dc18f
Fix clang tidy
sitaowang1998 053a1bb
Merge branch 'main' into scheduler_state
sitaowang1998 6fcbbd3
Merge branch 'main' into scheduler_lease
sitaowang1998 d4e7f18
Merge branch 'scheduler_state' into scheduler_lease
sitaowang1998 648cd38
Add scheduler lease in get_ready_tasks and unlease in create_task_ins…
sitaowang1998 a818ec1
Remove scheduler state when creating scheduler
sitaowang1998 8062659
Remove scheduler state in get active scheduler
sitaowang1998 806cd55
Merge branch 'scheduler_state' into scheduler_lease
sitaowang1998 f426d97
Add lease expire in get_ready_tasks
sitaowang1998 f240a8c
Reformat file
sitaowang1998 da06e14
Fix typo
sitaowang1998 cc6742e
Remove scheduler lease table creation
sitaowang1998 a444a78
Merge branch 'scheduler_state' of github.com:sitaowang1998/spider int…
sitaowang1998 4642922
Merge branch 'scheduler_state' into scheduler_lease
sitaowang1998 16976b7
Revert "Remove scheduler lease table creation"
sitaowang1998 aa71a60
Add unit test for lease timeout
sitaowang1998 56a04ba
Fix clang tidy and improve REQUIRE checks
sitaowang1998 b728fed
Merge branch 'main' into scheduler_lease
sitaowang1998 4bca9e9
Fix the comment on job id in map
sitaowang1998 8a795ff
Add primary key in scheduler lease table
sitaowang1998 c81d25a
Merge branch 'scheduler_lease' of github.com:sitaowang1998/spider int…
sitaowang1998 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.