mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
return installed pack list on status update
This commit is contained in:
parent
0be0a2e6d7
commit
b55e1404b1
@ -1,6 +1,6 @@
|
||||
# generated by datamodel-codegen:
|
||||
# filename: openapi.yaml
|
||||
# timestamp: 2025-06-13T00:37:21+00:00
|
||||
# timestamp: 2025-06-13T18:46:51+00:00
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@ -431,6 +431,9 @@ class TaskStateMessage(BaseModel):
|
||||
pending_queue: List[QueueTaskItem] = Field(
|
||||
..., description='Tasks waiting to be executed'
|
||||
)
|
||||
installed_packs: Dict[str, ManagerPackInstalled] = Field(
|
||||
..., description='Map of currently installed node packages by name'
|
||||
)
|
||||
|
||||
|
||||
class MessageTaskDone(BaseModel):
|
||||
|
||||
@ -221,6 +221,7 @@ class TaskQueue:
|
||||
history=self.get_history(),
|
||||
running_queue=self.get_current_queue()[0],
|
||||
pending_queue=self.get_current_queue()[1],
|
||||
installed_packs=core.get_installed_node_packs(),
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
@ -262,7 +263,7 @@ class TaskQueue:
|
||||
)
|
||||
self.batch_start_time = datetime.now().isoformat()
|
||||
self.batch_state_before = self._capture_system_state()
|
||||
logging.info(f"[ComfyUI-Manager] Started new batch: {self.batch_id}")
|
||||
logging.info("[ComfyUI-Manager] Started new batch: %s", self.batch_id)
|
||||
|
||||
def get(
|
||||
self, timeout: Optional[float] = None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user