Skip to content

Commit

Permalink
Javascript: Changes default behavior to wait for Job Run State checks. (
Browse files Browse the repository at this point in the history
awsdocs#7107)

Co-authored-by: David Souther <[email protected]>
  • Loading branch information
beqqrry-aws and DavidSouther authored Nov 26, 2024
1 parent 3f7e820 commit 74733d2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ const waitForJobRun = async (getJobRun, jobName, jobRunId) => {
case "FAILED":
case "TIMEOUT":
case "STOPPED":
case "ERROR":
throw new Error(
`Job ${JobRun.JobRunState}. Error: ${JobRun.ErrorMessage}`,
);
case "RUNNING":
break;
case "SUCCEEDED":
return;
default:
throw new Error(`Unknown job run state: ${JobRun.JobRunState}`);
break;
}

log(
Expand Down

0 comments on commit 74733d2

Please sign in to comment.