Skip to content

Commit 9daa1c9

Browse files
kriszypclaude
andcommitted
Say which streamed formats report a failure in the body; list CREATED in get_job
Dispatch-Task: pr-maint-badb3af9cefd2ca3a3b418701a8045f1 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 490ec19 commit 9daa1c9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎reference/operations-api/operations.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ Detailed documentation: [Database Jobs](../database/jobs.md)
21732173

21742174
### `get_job`
21752175

2176-
Returns job status (`COMPLETE`, `IN_PROGRESS`, `ERROR`), timing, and result message for the specified job ID. Bulk import/export operations return a job ID on initiation, as does a `deploy_component` with `"restart": "rolling"`, as `restartJobId`. [`restart_service`](#restart_service) also returns one; with `"replicated": true`, its job's `status` and `result.replicated` report whether each node restarted, as [`replicated`](#restart_service-replicated) describes.
2176+
Returns job status (`CREATED`, `IN_PROGRESS`, `COMPLETE`, `ERROR`), timing, and result message for the specified job ID. Bulk import/export operations return a job ID on initiation, as does a `deploy_component` with `"restart": "rolling"`, as `restartJobId`. [`restart_service`](#restart_service) also returns one; with `"replicated": true`, its job's `status` and `result.replicated` report whether each node restarted, as [`replicated`](#restart_service-replicated) describes.
21772177

21782178
```json
21792179
{ "operation": "get_job", "id": "4a982782-929a-4507-8794-26dae1132def" }

‎reference/rest/content-types.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Comma-separated values format, suitable for data export and spreadsheet import/e
5050

5151
## When a Streamed Response Fails
5252

53-
A collection query, or any resource that returns an iterable, is streamed: Harper sends the `200` status and headers, then writes records as it reads them. If reading fails after that, the status can no longer change, so the failure shows up in the body.
53+
A collection query, or any resource that returns an iterable, is streamed: Harper sends the `200` status and headers, then writes records as it reads them. If reading fails after that, the status can no longer change, so JSON, NDJSON and Server-Sent Events report the failure in the body.
5454

5555
### JSON
5656

0 commit comments

Comments
 (0)