-
Notifications
You must be signed in to change notification settings - Fork 61
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
TRON-2208: Add toggle in tron config to disable retries on LOST k8s jobs #988
Changes from all commits
386b902
75ece6b
e6d6818
e3ecf1b
34b98f4
1ece1c6
1ed7dbe
6e2163e
dbd31da
d58cb93
0cda7e5
b8e91c3
fa00a34
f16b828
b9883a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ tron.egg-info | |
docs/_build/ | ||
.idea | ||
.vscode | ||
.fleet | ||
tron.iml | ||
docs/images/ | ||
*.dot | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
asynctest | ||
debugpy | ||
flake8 | ||
mock | ||
mypy | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
astroid==2.13.3 | ||
asynctest==0.12.0 | ||
cfgv==2.0.1 | ||
debugpy==1.8.1 | ||
dill==0.3.6 | ||
distlib==0.3.6 | ||
filelock==3.4.1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,7 +447,7 @@ def test_handle_event_lost(mock_kubernetes_task): | |
) | ||
) | ||
|
||
assert mock_kubernetes_task.is_unknown | ||
assert mock_kubernetes_task.exit_status == exitcode.EXIT_KUBERNETES_TASK_LOST | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might want to keep the old assert as well, since we do still want to verify 'lost' k8s events lead to marking the task as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sadly the way we're checking unknow is by checking exit code def is_unknown(self):
return self.exit_status is None There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohh interesting; i didn't realize assigning the LOST's an exit code changed this behavior, thanks. Did you happen to glance through all the other places where we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should not be a problem since we're only marking lost jobs with the special lost exit code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is_broken() uses the |
||
|
||
|
||
def test_create_task_disabled(): | ||
|
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.
just curious: what is this for?
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.
VSCode Python Debugger :)
https://github.com/microsoft/debugpy