mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-10 19:06:33 +00:00
feat(server): support cancellation of running generation jobs (#2190)
This commit is contained in:
1 parent
deaeed6a2f
commit
e779d4f149
5 files changed
+78
-21
No files matched your search
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user