(
executionId: string,
name: string,
deferredName: string
)
| 580 | // --- Clock firing ----------------------------------------------------- |
| 581 | |
| 582 | const fireClock = ( |
| 583 | executionId: string, |
| 584 | name: string, |
| 585 | deferredName: string |
| 586 | ): Effect.Effect<void> => |
| 587 | Effect |
| 588 | .gen(function*() { |
| 589 | const encoded = yield* encodeDeferredExit(Exit.void) |
| 590 | const inserted = yield* sql |
| 591 | .withTransaction(Effect.gen(function*() { |
| 592 | const got = yield* createDeferred(executionId, deferredName, encoded) |
| 593 | yield* deleteClock(executionId, name) |
| 594 | return got |
| 595 | })) |
| 596 | .pipe(Effect.orDie) |
| 597 | if (inserted) yield* driveById(executionId) |
| 598 | }) |
| 599 | .pipe(annotate("clockFire", executionId)) |
| 600 | |
| 601 | // --- Encoded engine --------------------------------------------------- |
| 602 |
no test coverage detected
searching dependent graphs…