MCPcopy
hub / github.com/KeygraphHQ/shannon / updateSessionStatus

Method updateSessionStatus

apps/worker/src/audit/audit-session.ts:213–223  ·  view source on GitHub ↗

* Update session status

(status: 'in-progress' | 'completed' | 'failed' | 'cancelled')

Source from the content-addressed store, hash-verified

211 * Update session status
212 */
213 async updateSessionStatus(status: 'in-progress' | 'completed' | 'failed' | 'cancelled'): Promise<void> {
214 await this.ensureInitialized();
215
216 const unlock = await sessionMutex.lock(this.sessionId);
217 try {
218 await this.metricsTracker.reload();
219 await this.metricsTracker.updateSessionStatus(status);
220 } finally {
221 unlock();
222 }
223 }
224
225 /**
226 * Get current metrics (read-only)

Callers 1

logWorkflowCompleteFunction · 0.95

Calls 3

ensureInitializedMethod · 0.95
lockMethod · 0.80
reloadMethod · 0.80

Tested by

no test coverage detected