(log: StepLog["Service"], step: string)
| 192 | } |
| 193 | return yield* Effect.fail(new Error(`Workflow ${executionId} did not complete`)) |
| 194 | }) |
| 195 | |
| 196 | const waitForStep = (log: StepLog["Service"], step: string) => |
| 197 | Effect.gen(function*() { |
| 198 | for (let i = 0; i < 100; i++) { |
| 199 | if (log.steps.includes(step)) return |
| 200 | yield* Effect.sleep(Duration.millis(100)) |
| 201 | } |
| 202 | return yield* Effect.fail(new Error(`Workflow did not reach ${step}`)) |
| 203 | }) |
| 204 |
no test coverage detected
searching dependent graphs…