cancelSandboxBackgroundCommand

Cancel a background command. Requires project.sandboxes.manage.

Arguments

  • sandboxIdID!required

  • commandIdID!required

Responses

mutation CancelSandboxBackgroundCommand($sandboxId: ID!, $commandId: ID!) {  cancelSandboxBackgroundCommand(sandboxId: $sandboxId, commandId: $commandId) {    commandId    command    status    signal    heartbeatStatus    lastHeartbeatAt    lastHeartbeatError    heartbeatFailureCount    exitCode    startedAt    finishedAt  }}
{  "data": {    "cancelSandboxBackgroundCommand": {      "commandId": "string",      "command": "string",      "status": "pending",      "signal": "string",      "heartbeatStatus": "disabled",      "lastHeartbeatAt": "2026-01-01T00:00:00Z",      "lastHeartbeatError": "string",      "heartbeatFailureCount": 0,      "exitCode": 0,      "startedAt": "string",      "finishedAt": "string"    }  }}

The SandboxBackgroundCommand! in data.cancelSandboxBackgroundCommand.