MCPcopy Index your code
hub / github.com/coder/mux / getRun

Method getRun

src/node/services/workflows/WorkflowRunStore.ts:205–212  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

203 }
204
205 async getRun(runId: string): Promise<WorkflowRunRecord> {
206 // UI polling must not wait behind the writer lock; while a mutation is in progress,
207 // fall back to the last atomic run.json snapshot instead of reading half-updated journals.
208 if (await this.hasActiveWorkflowMutationLock(runId)) {
209 return await this.getRunFileSnapshot(runId);
210 }
211 return await this.getRunUnlocked(runId);
212 }
213
214 async getRunStatusSnapshot(runId: string): Promise<WorkflowRunStatusSnapshot> {
215 assertValidWorkflowRunId(runId);

Calls 3

getRunFileSnapshotMethod · 0.95
getRunUnlockedMethod · 0.95

Tested by

no test coverage detected