(run.deployment)
- queue - Queue Run
Create a new deployment run with the given parameters.
from comfydeploy import ComfyDeploy
with ComfyDeploy(
bearer="<YOUR_BEARER_TOKEN_HERE>",
) as comfy_deploy:
res = comfy_deploy.run.deployment.queue(request={
"deployment_id": "15e79589-12c9-453c-a41a-348fdd7de957",
"inputs": {
"prompt": "A beautiful landscape",
"seed": 42,
},
"webhook": "https://myapp.com/webhook",
})
assert res.create_run_response is not None
# Handle response
print(res.create_run_response)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
components.DeploymentRunRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.QueueDeploymentRunRunDeploymentQueuePostResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | */* |