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

Commit

Permalink
Add stopped state
Browse files Browse the repository at this point in the history
Add stopped state using exit code.
  • Loading branch information
abuccts committed Jul 19, 2019
1 parent 58f7a15 commit 617d0e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rest-server/src/models/v2/job/k8s.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const convertState = (state, exitCode) => {
case 'Completed':
if (exitCode === 0) {
return 'SUCCEEDED';
} else if (exitCode === -210 || exitCode === -220) {
return 'STOPPED';
} else {
return 'FAILED';
}
Expand Down

0 comments on commit 617d0e2

Please sign in to comment.