ProtecteddataOptionalerror?: ErrorDataOptionalestimatedStartAt?: DateOptionaleta?: DateEstimated completion time of the project (for long-running projects like video generation). Is equal to maximum job ETA
OptionalqueueStatus?: "waiting" | "no-workers"'no-workers' when nothing currently connected can run this project's model.
ProtectedlastProtectedlistenersTime at which a worker is expected to start this project, while it is still queued. Undefined once processing starts, or when the server cannot estimate a wait.
Prefer this over Project.queuePosition when telling a user how long they have to wait: position counts projects, not time, so being first in line behind a long video render is still a long wait.
Estimated time of completion in seconds (for long-running projects like video generation). Updated by ComfyUI workers during inference.
List of jobs in the project. Note that jobs will be added to this list as
workers start processing them. So initially this list will be empty.
Subscribe to project updated event to get notified about any update, including new jobs.
Progress of the project in percentage (0-100).
'no-workers' when nothing currently connected can run this project's model, in which
case Project.estimatedStartAt is undefined and the project is waiting for a
worker to come online rather than for the queue to drain.
List of result URLs for all completed jobs in the project.
Cancel the project. This will cancel all jobs in the project.
ProtectedemitDispatch an event to all listeners
Remove an event listener
Add an event listener, returns a function that can be called to remove the listener
Add an event listener that will be called only once
Remove all event listeners, optionally for a specific event
Optionalevent: TGet full project data snapshot. Can be used to serialize the project and store it in a database.
Optionalerror?: ErrorDataOptionalestimatedStartAt?: DateEstimated time at which a worker will start this project, while it is still queued.
Cleared once the project starts processing. undefined when the server cannot
estimate — see ProjectData.queueStatus.
Optionaleta?: DateEstimated completion time of the project (for long-running projects like video generation). Is equal to maximum job ETA
OptionalqueueStatus?: "waiting" | "no-workers"'no-workers' when nothing currently connected can run this project's model.
Estimated time at which a worker will start this project, while it is still queued. Cleared once the project starts processing.
undefinedwhen the server cannot estimate — see ProjectData.queueStatus.