(run)
Get Run
from comfydeploy import ComfyDeploy
with ComfyDeploy(
bearer="<YOUR_BEARER_TOKEN_HERE>",
) as comfy_deploy:
res = comfy_deploy.run.get(run_id="b888f774-3e7c-4135-a18c-6b985523c4bc")
assert res.workflow_run_model is not None
# Handle response
print(res.workflow_run_model)| Parameter | Type | Required | Description |
|---|---|---|---|
run_id |
str | ✔️ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.GetRunRunRunIDGetResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | */* |
Cancel Run
from comfydeploy import ComfyDeploy
with ComfyDeploy(
bearer="<YOUR_BEARER_TOKEN_HERE>",
) as comfy_deploy:
res = comfy_deploy.run.cancel(run_id="<id>")
assert res.any is not None
# Handle response
print(res.any)| Parameter | Type | Required | Description |
|---|---|---|---|
run_id |
str | ✔️ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CancelRunRunRunIDCancelPostResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | */* |