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

Function findRun

packages/cluster/test/ClusterWorkflowEngine.test.ts:441–447  ·  view source on GitHub ↗
(entityType: string)

Source from the content-addressed store, hash-verified

439 yield* Fiber.join(fiber)
440
441 const findRun = (entityType: string) =>
442 driver.journal.find(
443 (envelope) =>
444 envelope._tag === "Request" &&
445 envelope.address.entityType === entityType &&
446 envelope.tag === "run"
447 )
448 const parentRun = findRun("Workflow/DiscardParentWorkflow")
449 const childRun = findRun("Workflow/DiscardChildWorkflow")
450 assert.exists(parentRun, "expected a run envelope for the parent workflow")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected