-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Add job cancellation for early stop of the job execution. #137
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
Open
sitaowang1998
wants to merge
67
commits into
y-scope:main
Choose a base branch
from
sitaowang1998:job_cancel
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
f959ef3
Add job cancel storage call
sitaowang1998 8a3ef43
Add tests for job cancel storage function
sitaowang1998 a79dff1
Add get_task_state
sitaowang1998 80e27cb
Add cancel messages in storage
sitaowang1998 f7fa1d7
Add get message function in storage
sitaowang1998 9aced17
Fix job error message
sitaowang1998 2198185
Add error message into tests
sitaowang1998 25e9b3f
Add cancel_job_by_task
sitaowang1998 4292d46
Add tests for cancel_job_by_task
sitaowang1998 6a1f9e0
Add job cancel in client
sitaowang1998 e4c8f99
Do not fail the task if it is not running
sitaowang1998 127cd74
Fix clang-tidy
sitaowang1998 d964d67
Add task executor cancel state check
sitaowang1998 2e2ddf8
Add ExecutorHandle class
sitaowang1998 1a724ce
Add job cancel check in worker
sitaowang1998 4b59d39
Fix missing argument for worker threads
sitaowang1998 c79eefc
Fixed lock guard const function
sitaowang1998 f3cb222
Fix clang-tidy
sitaowang1998 7342925
Add function name in job_errors table
sitaowang1998 5e841f8
Add client and tasks for cancel tests
sitaowang1998 a988751
Add get func_name column in storage
sitaowang1998 a58f58e
Add get_error in job
sitaowang1998 23d94ff
Fix clang tidy
sitaowang1998 d9e837f
Update unit test with new get_error
sitaowang1998 24563ce
Check for running status before parsing result
sitaowang1998 f1afa62
Improve storage task_fail state check
sitaowang1998 afbf6b9
Add integration tests for cancel and abort
sitaowang1998 e2cad8f
Revert test storage url change
sitaowang1998 a55ffac
Fix test cmake
sitaowang1998 709422d
Fix clang-tidy
sitaowang1998 228d32a
Fix storage docstring
sitaowang1998 b351b11
Reuse connection in worker heartbeat thread
sitaowang1998 6711918
Fix typo
sitaowang1998 134c811
Fix clang-tidy
sitaowang1998 9a33bbd
Do not add error message when cancel job from user
sitaowang1998 17dd4df
Add cancel inside ExecutorHandle
sitaowang1998 1f4160b
Merge branch 'main' into job_cancel
sitaowang1998 31a1579
Merge branch 'main' into job_cancel
sitaowang1998 670864c
Rename get_job_message to get_error_message
sitaowang1998 f500c1a
Rename TaskExecutor is_* functions
sitaowang1998 bef31da
Fix comment grammer
sitaowang1998 216913e
Remove unnecessary comment
sitaowang1998 594f32e
Improve ExeuctorHandle docstring
sitaowang1998 623ee0e
Fix relative include header
sitaowang1998 5b8ab01
Fix library include
sitaowang1998 cd55a1e
Improve integration test docstring
sitaowang1998 62976a2
Remove unnecessary comment
sitaowang1998 89b2813
Remove library header nolint
sitaowang1998 c0f533f
Remove unncecessary comments
sitaowang1998 e2a2ea6
Refactor job cancel unit test setup into a separate function
sitaowang1998 f7b36bb
Fix clang tidy
sitaowang1998 1d20f50
Fix clang-tidy
sitaowang1998 7368900
Fix clang tidy
sitaowang1998 2f9d378
Apply suggestions from code review
sitaowang1998 1bee529
Merge branch 'main' into job_cancel
sitaowang1998 8ebdfd1
Remove unused function
sitaowang1998 10bd8ff
Add error message for cancel test by user
sitaowang1998 a344f88
Refactor cancel integration test
sitaowang1998 8672fd8
Use maybe_unused
sitaowang1998 9fa0884
Rename job_errors' func_name column to offender; Improvce docstring
sitaowang1998 573a74b
Improve docstring of job_cancel_setup in test
sitaowang1998 2afd0e2
Bug fix
sitaowang1998 40e5fb5
Rename function
sitaowang1998 b65d187
Store task id inside TaskExecutor
sitaowang1998 e4da187
Make ExecutorHandle singleton
sitaowang1998 18ce4e9
Improve docstring for cancel test job setup
sitaowang1998 8015388
Fix clang tidy
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
|
sitaowang1998 marked this conversation as resolved.
|
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.