mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
- Tests now perform faster - Tests will run on supported GPU platforms - Configuration has known issues related to setting up a working directory for an embedded client - Introduce a Skeletonize node that solves many problems with Canny - Improve behavior of exception reporting
28 lines
924 B
Python
28 lines
924 B
Python
from __future__ import annotations
|
|
|
|
import uuid
|
|
from typing import Literal, Optional
|
|
|
|
from ..component_model.executor_types import ExecutorToClientProgress, StatusMessage, ExecutingMessage
|
|
from ..component_model.queue_types import BinaryEventTypes
|
|
|
|
|
|
class ServerStub(ExecutorToClientProgress):
|
|
"""
|
|
This class is a stub implementation of ExecutorToClientProgress. This will handle progress events.
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.client_id = str(uuid.uuid4())
|
|
self.last_node_id = None
|
|
self.last_prompt_id = None
|
|
self.receive_all_progress_notifications = False
|
|
|
|
def send_sync(self,
|
|
event: Literal["status", "executing"] | BinaryEventTypes | str | None,
|
|
data: StatusMessage | ExecutingMessage | bytes | bytearray | None, sid: str | None = None):
|
|
pass
|
|
|
|
def queue_updated(self, queue_remaining: Optional[int] = None):
|
|
pass
|