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

Function annotate

packages/infra/src/WorkflowEngineSqlite.ts:143–150  ·  view source on GitHub ↗
(operation: string, executionId?: string)

Source from the content-addressed store, hash-verified

141 const clockPollInterval = cfg.clockPollInterval ?? Duration.seconds(5)
142
143 const annotate = (operation: string, executionId?: string) =>
144 annotateDb({
145 operation,
146 system: "sqlite",
147 collection: execTable,
148 entity: "workflow",
149 extra: executionId !== undefined ? { "app.entity.id": executionId } : undefined
150 })
151
152 const exec = (query: string, params: ReadonlyArray<unknown> = []) =>
153 sql.unsafe(query, params as Array<any>).pipe(Effect.orDie)

Callers 5

readExecFunction · 0.70
replaceExecFunction · 0.70
createExecFunction · 0.70
fireClockFunction · 0.70

Calls 1

annotateDbFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…