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

Function createDeferred

packages/infra/src/WorkflowEngineSqlite.ts:394–406  ·  view source on GitHub ↗
(
    executionId: string,
    name: string,
    encoded: string
  )

Source from the content-addressed store, hash-verified

392 )
393
394 const createDeferred = (
395 executionId: string,
396 name: string,
397 encoded: string
398 ): Effect.Effect<boolean> =>
399 exec(
400 `INSERT INTO "${deferredTable}" (execution_id, name, exit)
401 VALUES (?, ?, ?)
402 ON CONFLICT DO NOTHING
403 RETURNING execution_id`,
404 [executionId, name, encoded]
405 )
406 .pipe(Effect.map((rows) => (rows as ReadonlyArray<unknown>).length > 0))
407
408 const readDeferred = (
409 executionId: string,

Callers 2

fireClockFunction · 0.85

Calls 3

execFunction · 0.70
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…