Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
[Rest Server] Infer TaskStatus after App completed #2635
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqinzheng authored Apr 26, 2019
1 parent f31ad21 commit f0e7de4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rest-server/src/models/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class Job {
case 'TASK_COMPLETED':
if (exitCode === 0) {
return 'SUCCEEDED';
} else if (exitCode === -7400) {
return 'STOPPED';
} else {
return 'FAILED';
}
Expand Down

0 comments on commit f0e7de4

Please sign in to comment.