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

Function findRun

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

Source from the content-addressed store, hash-verified

322 yield* Fiber.join(fiber)
323
324 const findRun = (entityType: string) =>
325 driver.journal.find(
326 (envelope) =>
327 envelope._tag === "Request" &&
328 envelope.address.entityType === entityType &&
329 envelope.tag === "run"
330 )
331 const parentRun = findRun("Workflow/DiscardParentWorkflow")
332 const childRun = findRun("Workflow/DiscardChildWorkflow")
333 assert.exists(parentRun, "expected a run envelope for the parent workflow")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected