-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Jobs] Move task retry logic to correct branch in
stream_logs_by_id
(…
…#4407) * fix(jobs): move task retry logic to correct branch in `stream_logs_by_id` * refactor: use `next` for better readibility * refactor: add some comments for why it's wait until not RUNNING * refactor: a pylint's bug * fix: also include failed_setup * refactor: a extracted `user_code_failure_states` * refactor: remove `nonlocal` * fix: stop logging retry for no-follow * tests: smoke tests for managed jobs retrying * format * format Co-authored-by: Tian Xia <[email protected]> * chore: extract yaml file to test_yamls/ * refactor: use `def` rather than lambda * revert: restore lost test during merging * style: format --------- Co-authored-by: Tian Xia <[email protected]>
- Loading branch information
Showing
7 changed files
with
112 additions
and
49 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
resources: | ||
cpus: 2+ | ||
job_recovery: | ||
max_restarts_on_errors: 1 | ||
|
||
# Task 1: Always fails | ||
run: | | ||
echo "Task 1 starting" | ||
exit 1 | ||
--- | ||
# Task 2: Never reached due to Task 1 failure | ||
run: | | ||
echo "Task 2 starting" | ||
exit 0 |