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

Function insertClock

packages/infra/src/WorkflowEngineSqlite.ts:423–437  ·  view source on GitHub ↗
(
    executionId: string,
    name: string,
    workflowName: string,
    deferredName: string,
    fireAt: number
  )

Source from the content-addressed store, hash-verified

421 )
422
423 const insertClock = (
424 executionId: string,
425 name: string,
426 workflowName: string,
427 deferredName: string,
428 fireAt: number
429 ): Effect.Effect<boolean> =>
430 exec(
431 `INSERT INTO "${clockTable}" (execution_id, name, workflow_name, deferred_name, fire_at)
432 VALUES (?, ?, ?, ?, ?)
433 ON CONFLICT DO NOTHING
434 RETURNING execution_id`,
435 [executionId, name, workflowName, deferredName, fireAt]
436 )
437 .pipe(Effect.map((rows) => (rows as ReadonlyArray<unknown>).length > 0))
438
439 const deleteClock = (executionId: string, name: string) =>
440 exec(

Callers 1

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…