MCPcopy Create free account
hub / github.com/effect-app/libs / driveById

Function driveById

packages/infra/src/WorkflowEngineCosmos.ts:441–450  ·  view source on GitHub ↗
(executionId: string)

Source from the content-addressed store, hash-verified

439 })
440
441 const driveById = (executionId: string): Effect.Effect<void> =>
442 Effect.gen(function*() {
443 const stateOpt = yield* readExec(executionId)
444 if (Option.isNone(stateOpt)) return
445 const state = stateOpt.value
446 const entry = workflows.get(state.workflowName)
447 if (!entry) return
448 const payload = yield* decodePayload(entry.workflow, state.payload)
449 yield* drive(executionId, payload, state.parent, entry)
450 })
451
452 // --- Clock firing -----------------------------------------------------
453 // Persist deferred completion (first-writer-wins via createIfMissing),

Callers 3

driveFunction · 0.70
fireClockFunction · 0.70

Calls 4

readExecFunction · 0.70
decodePayloadFunction · 0.70
driveFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…