GET /api/v1/bd/jobs/{job_id}/events
Open a Server-Sent Events (SSE) stream to receive live progress updates for a BD job. The connection stays open until the job reaches a terminal state (completed, failed, or cancelled), at which point a final complete event is sent and the stream closes.
Path parameters
UUID of the BD job to stream events for.
Event types
| Event | When emitted |
|---|---|
progress | Emitted whenever status, progress_percent, or progress_message changes |
complete | Emitted once when the job reaches a terminal state, then the stream closes |
Event data fields
Each event’sdata payload is a JSON object:
UUID of the job.
Current status:
"pending", "running", "completed", "failed", or "cancelled".Completion percentage (0–100).
Human-readable description of the current stage.
ISO 8601 timestamp of the last update.
Example
cURL
SSE stream
JavaScript example
JavaScript
The stream polls the database every 2 seconds. Duplicate events are suppressed — a
progress event is only emitted when the payload changes.