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

Commit da076aa

Browse files
committed
add preemptible end status for clean exit
1 parent dc47694 commit da076aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/jobs/waitfor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function waitfor(params, cb) {
8888
case 'Pending':
8989
case 'Running':
9090
case 'Stopped':
91+
case 'Preempted':
9192
case 'Failed':
9293
case 'Error':
9394
targetState = state;
@@ -102,6 +103,7 @@ function waitfor(params, cb) {
102103
(job.state === 'Running' && params.state === 'Pending') ||
103104
job.state === 'Error' ||
104105
job.state === 'Stopped' ||
106+
job.state === 'Preempted' ||
105107
job.state === 'Failed' ||
106108
job.state === 'Cancelled') {
107109
return cb(null, job);

0 commit comments

Comments
 (0)