(state: ActivationState, abandoned: boolean)
| 142 | // skip superseded compensations. Abandonment releases owner-local resources |
| 143 | // without running durable finalizers, so the run can replay elsewhere. |
| 144 | const closeRuns = (state: ActivationState, abandoned: boolean) => |
| 145 | Effect.suspend(() => { |
| 146 | const scope = state.scope |
| 147 | if (abandoned) { |
| 148 | markScopeAbandoned(scope) |
| 149 | } |
| 150 | state.scope = Scope.makeUnsafe() |
| 151 | return Scope.close(scope, Exit.void) |
| 152 | }) |
| 153 | const clients = yield* RcMap.make({ |
| 154 | lookup: Effect.fnUntraced(function*(workflowName: string) { |
| 155 | const entity = entities.get(workflowName) |
no test coverage detected