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

Function parseExec

packages/infra/src/WorkflowEngineSqlite.ts:100–112  ·  view source on GitHub ↗
(row: ExecRow)

Source from the content-addressed store, hash-verified

98}
99
100const parseExec = (row: ExecRow): ExecState => ({
101 executionId: row.execution_id,
102 workflowName: row.workflow_name,
103 payload: row.payload,
104 parent: row.parent ?? undefined,
105 status: row.status,
106 suspended: row.suspended !== 0,
107 interrupted: row.interrupted !== 0,
108 completedResult: row.completed_result ?? undefined,
109 worker: row.worker ?? undefined,
110 leaseExpiresAt: row.lease_expires_at ?? undefined,
111 etag: row.etag
112})
113
114// --- Storage codecs ---------------------------------------------------------
115// Values flowing through the engine's activity / deferred boundary are already

Callers 1

readExecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…