mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 13:05:09 +00:00
feat(api): stream download job progress over server-sent events
Adds GET /api/download/jobs/{job_id}/events with snapshot, status, progress and terminal events, query-param auth for EventSource in both serve modes, atomic progress-file writes, and stream-safe CORS and compression middleware.
This commit is contained in:
@@ -177,6 +177,11 @@ The full detail adds `started_time`, `completed_time`, `output_files`, the redac
|
||||
done
|
||||
```
|
||||
|
||||
!!! tip "Or subscribe instead of polling"
|
||||
`GET /api/download/jobs/{job_id}/events` pushes the same job object as Server-Sent
|
||||
Events, and closes the stream when the job ends. See
|
||||
[Endpoints](endpoints.md#get-apidownloadjobsjob_idevents).
|
||||
|
||||
!!! note "What the percentage means"
|
||||
`progress` climbs from `0` toward `90` while tracks download, then the final stretch
|
||||
to `100` covers post-download work such as decryption cleanup, repackaging, and
|
||||
|
||||
Reference in New Issue
Block a user