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