MCPcopy Create free account
hub / github.com/Effect-TS/effect / scheduleClock

Function scheduleClock

packages/cluster/src/ClusterWorkflowEngine.ts:565–584  ·  view source on GitHub ↗
(workflow, options)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

entityAddressForFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected