Skip to content

Commit 1b758bd

Browse files
authored
Only prevent triggering runs if the parent is completed AND it’s a triggerAndWait (#1935)
1 parent e501113 commit 1b758bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/webapp/app/runEngine/services/triggerTask.server.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,11 @@ export class RunEngineTriggerTaskService extends WithRunEngine {
237237
})
238238
: undefined;
239239

240-
if (parentRun && isFinalRunStatus(parentRun.status)) {
240+
if (
241+
parentRun &&
242+
isFinalRunStatus(parentRun.status) &&
243+
body.options?.resumeParentOnCompletion
244+
) {
241245
logger.debug("Parent run is in a terminal state", {
242246
parentRun,
243247
});

0 commit comments

Comments
 (0)