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

Function annotate

packages/infra/src/WorkflowEngineCosmos.ts:164–173  ·  view source on GitHub ↗
(operation: string, executionId?: string)

Source from the content-addressed store, hash-verified

162 const clockPollInterval = cfg.clockPollInterval ?? Duration.seconds(5)
163
164 const annotate = (operation: string, executionId?: string) =>
165 annotateDb({
166 operation,
167 system: "cosmosdb",
168 collection: containerId,
169 entity: "workflow",
170 extra: executionId !== undefined
171 ? { "azure.cosmosdb.operation.partition_key": executionId, "app.entity.id": executionId }
172 : undefined
173 })
174
175 type Registered = {
176 readonly workflow: Workflow.Any

Callers 4

readExecFunction · 0.70
replaceExecFunction · 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…