feat(server): support cancellation of running generation jobs (#2190)

This commit is contained in:
leejet authored and GitHub committed 2026-10-23 00:24:56 +08:00
1 parent deaeed6a2f
commit e779d4f149
5 files changed
+78 -21

No files matched your search

+5 -1
View File
@@ -1037,7 +1037,11 @@ Notes:
#### `POST /sdcpp/v1/jobs/{id}/cancel`
Attempts to cancel an accepted job.
Cancels a queued job immediately, or requests interruption of a generating image or
video job. A generating job returns `200 OK` with `cancel_requested: true` and
remains `generating` until execution stops at a cancellation checkpoint. Continue
polling until its status becomes `cancelled`. Cancelled jobs have no result.
Repeated cancellation requests are safe; terminal jobs are returned unchanged.
Typical status codes: