pub enum ComfyEvent {
Status {
data: StatusEventData,
sid: Option<String>,
},
Progress {
data: ProgressEventData,
},
Executed {
data: ExecutedEventData,
},
Executing {
data: ExecutingEventData,
},
ExecutionStart {
data: ExecutionStartEventData,
},
ExecutionError {
data: ExecutionErrorEventData,
},
ExecutionCached {
data: ExecutionCachedEventData,
},
ExecutionInterrupted {
data: ExecutionInterruptedEventData,
},
ExecutionSuccess {
data: ExecutionSuccessEventData,
},
Unknown(Value),
}Expand description
Represents events emitted by the ComfyUI service during workflow execution.
This enum encapsulates various event types that occur during the lifecycle
of a workflow, from queuing to completion. Each variant contains specific
data relevant to that event type. The Unknown variant captures any
unrecognized events from the API.
Variants§
Status
A status event containing queue and execution information.
Fields
data: StatusEventDataData payload for the status event, including execution information.
Progress
A progress event indicating current progress of an operation.
Fields
data: ProgressEventDataData payload containing current and maximum progress values.
Executed
An event indicating that a node has completed execution along with its output data.
Fields
data: ExecutedEventDataData payload containing node output information and associated images.
Executing
An event indicating that a node is currently executing.
Fields
data: ExecutingEventDataData payload identifying the currently executing node.
ExecutionStart
An event signaling the start of execution for a prompt.
Fields
data: ExecutionStartEventDataData payload containing prompt ID and timestamp information.
ExecutionError
An event signaling that an error occurred during execution.
Fields
data: ExecutionErrorEventDataData payload containing detailed error information and context.
ExecutionCached
An event indicating that the execution results were retrieved from the cache.
Fields
data: ExecutionCachedEventDataData payload containing information about which nodes were retrieved from cache.
ExecutionInterrupted
An event indicating that the execution was interrupted.
Fields
data: ExecutionInterruptedEventDataData payload containing details about where and why the execution was interrupted.
ExecutionSuccess
An event indicating that the entire workflow has executed successfully.
Fields
data: ExecutionSuccessEventDataData payload containing the prompt ID of the successfully executed workflow.
Unknown(Value)
An unknown event type that encapsulates raw JSON data for events not explicitly defined.