MCPcopy Index your code
hub / github.com/Effect-TS/effect / scheduleClock

Function scheduleClock

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

entityAddressForFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected