Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ paths:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'422':
description: '`invalid_workflow` (with per-node details), `workflow_format_ui`, `missing_asset`, `idempotency_key_reuse`, `metadata_invalid` (for a bad key or value, the message and `details.key` name the key; for more than 16 pairs, the message gives the count and there are no `details`), or `metadata_not_supported` (a surface that keeps no job labels yet). On a deployment, also `model_not_ready` (the workflow names a model file still being added to the deployment; send it again once the file shows Ready) or `model_failed` (the file was not added; remove it and add it again).'
description: '`invalid_workflow` (with per-node details), `workflow_format_ui`, `missing_asset`, `idempotency_key_reuse`, `metadata_invalid` (for a bad key or value, the message and `details.key` name the key; for more than 16 pairs, the message gives the count and there are no `details`), or `metadata_not_supported` (a surface that keeps no job labels yet). On a deployment, also `model_not_ready` (the workflow names a model file still being added to the deployment; send it again once the file shows Ready) or `model_failed` (the file was not added; remove it and add it again). A workflow whose running nodes load a library model the deployment''s Release model policy does not allow is `invalid_workflow`, with `model_not_allowed` node errors.'
content:
application/json:
schema:
Expand Down Expand Up @@ -1136,7 +1136,7 @@ components:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
DeploymentLookupUnavailable:
description: 'On deployment-scoped surfaces, `deployment_lookup_unavailable`: the deployment this address names could not be looked up just now. The request was refused before it did anything (nothing was created, read, changed or canceled), so the same request can be sent again after `Retry-After`. Every operation at a deployment''s address can answer this way. A job submit can also answer this 503 with `database_unavailable`: the job could not be saved just now and nothing was started, so the same request can be sent again after `Retry-After`. No other operation answers `database_unavailable`. On Comfy Cloud an asset upload can also answer this 503 with `upload_busy`: the server is busy with other uploads and nothing was stored, so the same upload can be sent again after `Retry-After`. Any operation can also answer this 503 with `auth_unavailable`: the credential could not be checked just now, so the same request can be sent again after `Retry-After`. A job status read can also answer it with `output_unavailable`: an output of the job could not be prepared just now, and the job is unchanged. A transient storage failure clears on a later read after `Retry-After`; an output whose stored address is broken answers it on every read until the platform repairs the output.'
description: 'On deployment-scoped surfaces, `deployment_lookup_unavailable`: the deployment this address names could not be looked up just now. The request was refused before it did anything (nothing was created, read, changed or canceled), so the same request can be sent again after `Retry-After`. Every operation at a deployment''s address can answer this way. A job submit can also answer this 503 with `database_unavailable`: the job could not be saved just now and nothing was started, so the same request can be sent again after `Retry-After`. No other operation answers `database_unavailable`. On Comfy Cloud an asset upload can also answer this 503 with `upload_busy`: the server is busy with other uploads and nothing was stored, so the same upload can be sent again after `Retry-After`. Any operation can also answer this 503 with `auth_unavailable`: the credential could not be checked just now, so the same request can be sent again after `Retry-After`. A job status read can also answer it with `output_unavailable`: an output of the job could not be prepared just now, and the job is unchanged. A transient storage failure clears on a later read after `Retry-After`; an output whose stored address is broken answers it on every read until the platform repairs the output. A job submit also answers `deployment_lookup_unavailable` when a node the workflow would run loads a model from the workspace''s library and the model policy of the deployment''s Release could not be read just now: nothing was started, so the same request can be sent again after `Retry-After`.'
headers:
Retry-After:
$ref: '#/components/headers/RetryAfter'
Expand Down Expand Up @@ -1559,7 +1559,7 @@ components:
$ref: '#/components/schemas/JobNodeErrorReason'
JobNodeErrorReason:
type: object
description: 'One problem found with a node. `type` is the code for it: ComfyUI''s (for example `value_not_in_list`, `value_bigger_than_max`, `dependency_cycle`), or one of the gateway''s, sent where its submit checks are switched on: `unknown_node_class` (a node class the deployment''s build does not contain), `waits_for_browser` (a node the workflow would run whose class waits for a browser tab to answer while the job runs, which a deployment never has), `invalid_node` (the node is not a JSON object), `invalid_inputs` (its `inputs` is present but not an object, refused only where the deployment''s ComfyUI would fail such a node anyway, so no workflow that runs today is refused), or `invalid_class_type` (its `class_type` is missing or is not a non-empty string). ComfyUI''s `missing_node_type` means the same as `unknown_node_class`, found after dispatch rather than at submit. For either, `message` ends naming the node pack that provides the class where the Comfy node registry knows one. `details` usually starts with the input it is about.'
description: 'One problem found with a node. `type` is the code for it: ComfyUI''s (for example `value_not_in_list`, `value_bigger_than_max`, `dependency_cycle`), or one of the gateway''s. The gateway always sends `model_not_allowed`: a node the workflow would run loads a model from the workspace''s library that the deployment''s Release model policy does not allow, because the build runs only the models it allows and this one is not among them, or because the policy blocks it; add the model to the build to use it. Where its submit checks are switched on, it also sends `unknown_node_class` (a node class the deployment''s build does not contain), `waits_for_browser` (a node the workflow would run whose class waits for a browser tab to answer while the job runs, which a deployment never has), `invalid_node` (the node is not a JSON object), `invalid_inputs` (its `inputs` is present but not an object, refused only where the deployment''s ComfyUI would fail such a node anyway, so no workflow that runs today is refused), or `invalid_class_type` (its `class_type` is missing or is not a non-empty string). ComfyUI''s `missing_node_type` means the same as `unknown_node_class`, found after dispatch rather than at submit. For either, `message` ends naming the node pack that provides the class where the Comfy node registry knows one. `details` usually starts with the input it is about.'
required:
- type
- message
Expand Down Expand Up @@ -1604,7 +1604,9 @@ components:

operation: the deployment the address names could not be looked up

just now; nothing was done, so retry), `database_unavailable` (503 +
just now, or, on a job submit, the model policy of its Release could

not be read; nothing was done, so retry), `database_unavailable` (503 +

Retry-After, only on a job submit: the job could not be saved just

Expand Down
5 changes: 3 additions & 2 deletions src/comfy_low/models/_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class OutputType(Enum):

class JobNodeErrorReason(BaseModel):
"""
One problem found with a node. `type` is the code for it: ComfyUI's (for example `value_not_in_list`, `value_bigger_than_max`, `dependency_cycle`), or one of the gateway's, sent where its submit checks are switched on: `unknown_node_class` (a node class the deployment's build does not contain), `waits_for_browser` (a node the workflow would run whose class waits for a browser tab to answer while the job runs, which a deployment never has), `invalid_node` (the node is not a JSON object), `invalid_inputs` (its `inputs` is present but not an object, refused only where the deployment's ComfyUI would fail such a node anyway, so no workflow that runs today is refused), or `invalid_class_type` (its `class_type` is missing or is not a non-empty string). ComfyUI's `missing_node_type` means the same as `unknown_node_class`, found after dispatch rather than at submit. For either, `message` ends naming the node pack that provides the class where the Comfy node registry knows one. `details` usually starts with the input it is about.
One problem found with a node. `type` is the code for it: ComfyUI's (for example `value_not_in_list`, `value_bigger_than_max`, `dependency_cycle`), or one of the gateway's. The gateway always sends `model_not_allowed`: a node the workflow would run loads a model from the workspace's library that the deployment's Release model policy does not allow, because the build runs only the models it allows and this one is not among them, or because the policy blocks it; add the model to the build to use it. Where its submit checks are switched on, it also sends `unknown_node_class` (a node class the deployment's build does not contain), `waits_for_browser` (a node the workflow would run whose class waits for a browser tab to answer while the job runs, which a deployment never has), `invalid_node` (the node is not a JSON object), `invalid_inputs` (its `inputs` is present but not an object, refused only where the deployment's ComfyUI would fail such a node anyway, so no workflow that runs today is refused), or `invalid_class_type` (its `class_type` is missing or is not a non-empty string). ComfyUI's `missing_node_type` means the same as `unknown_node_class`, found after dispatch rather than at submit. For either, `message` ends naming the node pack that provides the class where the Comfy node registry knows one. `details` usually starts with the input it is about.
"""

type: Annotated[str, Field(examples=['value_not_in_list'])]
Expand Down Expand Up @@ -192,7 +192,8 @@ class ErrorEnvelope(BaseModel):
but its GPU provider is not taking work on it yet; retry),
`deployment_lookup_unavailable` (503 + Retry-After, on any
operation: the deployment the address names could not be looked up
just now; nothing was done, so retry), `database_unavailable` (503 +
just now, or, on a job submit, the model policy of its Release could
not be read; nothing was done, so retry), `database_unavailable` (503 +
Retry-After, only on a job submit: the job could not be saved just
now and nothing was started, so retry), `auth_unavailable` (503 +
Retry-After, on any operation: the credential could not be checked
Expand Down
Loading