You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ended | string | Timestamp when the task ended (read-only) |
19
20
| errors | {{<code>}}
20
21
[{
21
22
"cluster_name": string,
22
23
"description": string,
23
24
"error_code": string
24
25
}, ...] {{</code>}} | Details for errors that occurred on a cluster |
25
-
| status | 'queued' <br />'started' <br />'finished' <br />'failed' | CRDB task status (read only) |
26
+
| operation | string | The operation that is running (read-only) |
27
+
| progress | {{<code>}}
28
+
{
29
+
"clusters": [{
30
+
"name": string,
31
+
"progress": string
32
+
}, ...],
33
+
"worker": string
34
+
} {{</code>}} | • `name`: The instance cluster name<br />• `progress`: The step the instance coordinator is running<br />• `worker`: The step the worker is running |
35
+
| started | string | Timestamp when the task started (read-only) |
36
+
| status | 'queued' <br />'started' <br />'finished' <br />'failed' | CRDB task status (read-only) |
37
+
| worker_name | string | The worker that runs the task (read-only) |
|[404 Not Found](https://www.rfc-editor.org/rfc/rfc9110.html#name-404-not-found)| Task not found. |
91
+
92
+
## Cancel task {#post-crdb_task-cancel}
93
+
94
+
```sh
95
+
POST /v1/crdb_tasks/{task_id}/actions/cancel
96
+
```
97
+
98
+
Gracefully cancels a running or queued task.
99
+
100
+
A task that already reached the commit phase cannot be canceled.
101
+
102
+
### Request {#post-cancel-request}
103
+
104
+
#### Example HTTP request
105
+
106
+
```sh
107
+
POST /v1/crdb_tasks/1/actions/cancel
108
+
```
109
+
110
+
#### URL parameters
111
+
112
+
| Field | Type | Description |
113
+
|-------|------|-------------|
114
+
| task_id | string | Task ID |
115
+
116
+
#### Query parameters
117
+
118
+
| Field | Type | Description |
119
+
|-------|------|-------------|
120
+
| force | boolean | Cancel even if the task is in the commit phase. **WARNING**: This can break the CRDB in the cluster configuration store (CCS), so use with caution. (optional) |
121
+
122
+
### Response {#post-cancel-response}
123
+
124
+
Returns a status code.
125
+
126
+
#### Status codes {#post-cancel-status-codes}
127
+
128
+
| Code | Description |
129
+
|------|-------------|
130
+
|[200 OK](https://www.rfc-editor.org/rfc/rfc9110.html#name-200-ok)| The request has been accepted. |
| dry_run | boolean | Validate the request without applying changes (optional) |
58
+
53
59
#### Request body
54
60
55
61
Include a [CRDB modify_request object]({{< relref "/operate/rs/references/rest-api/objects/crdb/modify_request" >}}) with updated fields in the request body.
0 commit comments