-
Notifications
You must be signed in to change notification settings - Fork 549
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
[Spot] Let cancel interrupt the spot job (#1414) #1433
Merged
Merged
Changes from 21 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c3a8599
Let cancel interrupt the job
Michaelvll 169e8b5
Add test
Michaelvll 3e8bac6
Fix test
Michaelvll e82d89c
Cancel early
Michaelvll c081c60
fix test
Michaelvll 3441b43
fix test
Michaelvll 88f4db5
Fix exceptions
Michaelvll 331fa32
pass test
Michaelvll 25c568c
increase waiting time
Michaelvll 71a253d
address comments
Michaelvll 5253d5d
add job id
Michaelvll 6e9ba0c
remove 'auto' in ray.init
Michaelvll 7bffd84
Fix serialization problem
Michaelvll a5e7b20
refactor a bit
Michaelvll 0b66584
Fix
Michaelvll aa6dd91
Add comments
Michaelvll 3065fed
format
Michaelvll 5f0d801
pylint
Michaelvll 7875d35
revert a format change
Michaelvll f7b4f8b
Add docstr
Michaelvll 3cfa747
Move ray.init
Michaelvll c140801
replace ray with multiprocess.Process
Michaelvll 256d1f9
Add test for setup cancelation
Michaelvll 3feb30f
Fix logging
Michaelvll 8f469a5
Fix test
Michaelvll ba0f7b7
lint
Michaelvll af72709
Use SIGTERM instead
Michaelvll 0556774
format
Michaelvll 98db4a6
Change exception type
Michaelvll 1338a22
revert to KeyboardInterrupt
Michaelvll 76b62fb
remove
Michaelvll 8985d73
Fix test
Michaelvll d93c5f6
fix test
Michaelvll 832bde1
fix test
Michaelvll 2e3fbe4
typo
Michaelvll 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
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
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
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
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.
Do we need to test recovery in this test? Isn't it already covered by
test_spot_recovery
andtest_spot_recovery_multi_node
? Maybe we can remove it in the interest of keeping our tests fast (while avoiding test duplication)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.
This was intended to test that the spot job can be canceled immediately during the recovering. Do you think that makes sense?
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.
Ahh that does make a lot of sense - good to keep this then!