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

Function schedule

packages/cluster/src/ClusterCron.ts:92–98  ·  view source on GitHub ↗
(dateTime: DateTime.Utc)

Source from the content-addressed store, hash-verified

90 const makeClient = yield* CronEntity.client
91 const address = yield* Entity.CurrentAddress
92 const schedule = (dateTime: DateTime.Utc) =>
93 makeClient(DateTime.formatIso(dateTime)).run({ dateTime }, { discard: true }).pipe(
94 Effect.tapErrorCause((cause) => Effect.logWarning("Failed to schedule next run, retrying", cause)),
95 Effect.sandbox,
96 Effect.retry(retryPolicy),
97 Effect.orDie
98 )
99 return {
100 run: (request) =>
101 Effect.gen(function*() {

Callers 1

makeFunction · 0.70

Calls 3

makeClientFunction · 0.70
pipeMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected