Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 2.55 KB

File metadata and controls

56 lines (37 loc) · 2.55 KB

Deployment

(run.deployment)

Overview

Available Operations

queue

Create a new deployment run with the given parameters.

Example Usage

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)

Parameters

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.

Response

operations.QueueDeploymentRunRunDeploymentQueuePostResponse

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.SDKError 4XX, 5XX */*