We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c19693 commit 2d32e09Copy full SHA for 2d32e09
1 file changed
packages/cli-v3/src/entryPoints/managed/execution.ts
@@ -269,6 +269,13 @@ export class RunExecution {
269
this.abortExecution();
270
return;
271
}
272
+ case "QUEUED": {
273
+ this.sendDebugLog("Run was re-queued", snapshotMetadata);
274
+
275
+ // Pretend we've just suspended the run. This will kill the process without failing the run.
276
+ await this.taskRunProcess?.suspend();
277
+ return;
278
+ }
279
case "FINISHED": {
280
this.sendDebugLog("Run is finished", snapshotMetadata);
281
@@ -402,8 +409,7 @@ export class RunExecution {
402
409
403
410
404
411
405
- case "RUN_CREATED":
406
- case "QUEUED": {
412
+ case "RUN_CREATED": {
407
413
this.sendDebugLog("Invalid status change", snapshotMetadata);
408
414
415
0 commit comments