* Update session status
(status: 'in-progress' | 'completed' | 'failed' | 'cancelled')
| 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) |
no test coverage detected