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 7f62aee commit e424c44Copy full SHA for e424c44
packages/cli-v3/src/entryPoints/managed-run-controller.ts
@@ -579,7 +579,15 @@ class ManagedRunController {
579
runId: run.friendlyId,
580
message: "Run is finished, will wait for next run",
581
});
582
- this.waitForNextRun();
+
583
+ if (this.activeRunExecution) {
584
+ // Let's pretend we've just suspended the run. This will kill the process and should automatically wait for the next run.
585
+ // We still explicitly call waitForNextRun() afterwards in case of race conditions. Locks will prevent this from causing issues.
586
+ await this.taskRunProcess?.suspend();
587
+ }
588
589
+ this.waitForNextRun();
590
591
return;
592
}
593
case "QUEUED_EXECUTING":
0 commit comments