cancel_job
Stop a running or queued fine-tuning job to prevent further GPU usage charges while accounting for already consumed resources.
Instructions
Cancel a running or queued fine-tuning job. The job will be charged for any GPU time already used.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID to cancel |
Implementation Reference
- src/client.ts:62-64 (handler)The API client method that performs the network request to cancel a job.
async cancelJob(jobId: string): Promise<any> { return this.request("POST", `/api/v1/jobs/${jobId}/cancel`); } - src/mcp.ts:412-414 (handler)The MCP tool handler that invokes the API client's cancelJob method when the "cancel_job" tool is called.
case "cancel_job": result = await client.cancelJob(args!.job_id as string); break; - src/mcp.ts:164-175 (registration)The declaration/registration of the "cancel_job" tool, including its input schema.
{ name: "cancel_job", description: "Cancel a running or queued fine-tuning job. The job will be charged for any GPU time already used.", inputSchema: { type: "object" as const, properties: { job_id: { type: "string", description: "Job ID to cancel" }, }, required: ["job_id"], }, },