MCPcopy
hub / github.com/coder/mux / finalizeStaleSteps

Method finalizeStaleSteps

src/node/services/devToolsService.ts:287–299  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

285 }
286
287 async finalizeStaleSteps(workspaceId: string): Promise<void> {
288 // Stale cleanup runs regardless of the current enabled state: steps that were
289 // started while logging was ON should be properly finalized even if the user
290 // later disables debug logging.
291 assert(
292 workspaceId.trim().length > 0,
293 "DevToolsService.finalizeStaleSteps requires a workspaceId"
294 );
295
296 await this.ensureLoaded(workspaceId);
297 const data = this.getOrCreateWorkspaceData(workspaceId);
298 await this.finalizeStaleStepsForLoadedWorkspace(workspaceId, data);
299 }
300
301 async getRuns(workspaceId: string): Promise<DevToolsRunSummary[]> {
302 if (!this.enabled) {

Callers 1

Calls 4

ensureLoadedMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected