Skip to content

Commit

Permalink
fix(titus): handle additional task states (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed May 22, 2019
1 parent 6544b7b commit 84a12a8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,18 @@ public static TaskState from(String taskStateStr, String reasonCode) {
case "normal":
return TaskState.FINISHED;
case "killed":
case "scaledDown":
case "stuckInState":
return TaskState.STOPPED;
case "crashed":
case "lost":
return TaskState.CRASHED;
case "failed":
case "invalidRequest":
case "runtimeLimitExceeded":
case "transientSystemError":
case "localSystemError":
case "unknownSystemError":
return TaskState.FAILED;
default:
return TaskState.FINISHED;
Expand Down

0 comments on commit 84a12a8

Please sign in to comment.