return installed pack list on status update

This commit is contained in:
bymyself 2025-06-13 11:56:38 -07:00
parent 0be0a2e6d7
commit b55e1404b1
2 changed files with 6 additions and 2 deletions

View File

@ -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):

View File

@ -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