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

Method markTaskLaunchFailed

src/node/services/taskService.ts:2696–2709  ·  view source on GitHub ↗
(taskId: string, message: string)

Source from the content-addressed store, hash-verified

2694 }
2695
2696 private async markTaskLaunchFailed(taskId: string, message: string): Promise<void> {
2697 assert(taskId.length > 0, "markTaskLaunchFailed requires taskId");
2698 await this.editWorkspaceEntry(
2699 taskId,
2700 (ws) => {
2701 ws.taskStatus = "interrupted";
2702 ws.taskLaunchError = message;
2703 },
2704 { allowMissing: true }
2705 );
2706 await this.emitWorkspaceMetadata(taskId);
2707 this.rejectWaiters(taskId, new Error(message));
2708 this.scheduleMaybeStartQueuedTasks();
2709 }
2710
2711 private async startReservedAgentTask(plan: TaskLaunchPlan): Promise<void> {
2712 assert(plan.taskId.length > 0, "startReservedAgentTask requires taskId");

Calls 5

editWorkspaceEntryMethod · 0.95
emitWorkspaceMetadataMethod · 0.95
rejectWaitersMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected