Skip to content

Commit 04e3f05

Browse files
committed
Only detect deadlocks when the parent run is waiting on the child run
1 parent dc0b653 commit 04e3f05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/webapp/app/runEngine/concerns/runChainStates.server.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ export class DefaultRunChainStateManager implements RunChainStateManager {
4040

4141
const parentRunChainState = parsedParentRunChainState.data;
4242

43+
if (
44+
typeof request.body.options?.resumeParentOnCompletion === "boolean" &&
45+
!request.body.options.resumeParentOnCompletion
46+
) {
47+
return parentRunChainState;
48+
}
49+
4350
// Now we need to check if the parent run will hold concurrency, or if it will release it
4451
// if it will hold concurrency, we need to account for the parent run's concurrency
4552
// Then, along with the new run's concurrency,

0 commit comments

Comments
 (0)