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

Method scheduleReservedTaskLaunch

src/node/services/taskService.ts:2682–2688  ·  view source on GitHub ↗
(plan: TaskLaunchPlan)

Source from the content-addressed store, hash-verified

2680 }
2681
2682 private scheduleReservedTaskLaunch(plan: TaskLaunchPlan): void {
2683 assert(plan.taskId.length > 0, "scheduleReservedTaskLaunch requires taskId");
2684 void this.enqueueReservedTaskLaunch(plan).catch((error: unknown) => {
2685 log.error("Failed to launch reserved task", { taskId: plan.taskId, error });
2686 void this.markTaskLaunchFailed(plan.taskId, getErrorMessage(error));
2687 });
2688 }
2689
2690 private scheduleMaybeStartQueuedTasks(): void {
2691 void this.maybeStartQueuedTasks().catch((error: unknown) => {

Callers 1

createManyMethod · 0.95

Calls 4

markTaskLaunchFailedMethod · 0.95
getErrorMessageFunction · 0.90
assertFunction · 0.50

Tested by

no test coverage detected