-
Notifications
You must be signed in to change notification settings - Fork 0
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
task/WP-189 Handle timeout exit code for interactive app jobs #851
task/WP-189 Handle timeout exit code for interactive app jobs #851
Conversation
Codecov Report
@@ Coverage Diff @@
## main #851 +/- ##
==========================================
- Coverage 63.05% 63.05% -0.01%
==========================================
Files 425 426 +1
Lines 12112 12133 +21
Branches 2475 2479 +4
==========================================
+ Hits 7637 7650 +13
- Misses 4275 4279 +4
- Partials 200 204 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Awesome, nice work!
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.
LGTM
* added success message and state for interactive job on timeout * linting * created a central utility function, added logic to determine timeout * remove commented code * Added a comment
Overview
Fixes an issue where after timing out an interactive job is displayed as FAILED when in fact the job was successful and should have the FINISHED state because it timed out after reaching the maximum allotted time.
Related
Changes
The changes implemented here are on the portal side where a check is made to confirm if the job is interactive and whether or not it ended because of a timeout. On the tapis side the job state remains
FAILED
but we are able to use the exit code provided in theremoteResultInfo
attribute of a job to determine if it was a timeout and display a success message on the portal side. This change is made inJobsView
andJobsWebhookView
endpointsTesting
FINISHED
state after reaching the maximum runtime limitUI
Notes
Follow up question: Does the last status message displayed in the job detail modal need to be modified as well? Currently it shows the timeout error message sent from Tapis