(workflow, options)
| 556 | ), |
| 557 | |
| 558 | scheduleClock(workflow, options) { |
| 559 | return DateTime.now.pipe( |
| 560 | Effect.flatMap((now) => |
| 561 | sendDiscard({ |
| 562 | rpc: ClockRpc, |
| 563 | address: entityAddressFor({ |
| 564 | workflow, |
| 565 | entityType: ClockEntity.type, |
| 566 | executionId: options.executionId |
| 567 | }), |
| 568 | payload: { |
| 569 | name: options.clock.name, |
| 570 | workflowName: workflow.name, |
| 571 | wakeUp: DateTime.addDuration(now, options.clock.duration) |
| 572 | } |
| 573 | }) |
| 574 | ), |
| 575 | Effect.orDie |
| 576 | ) |
| 577 | } |
| 578 | }) |
| 579 | |
| 580 | return engine |
nothing calls this directly
no test coverage detected