mirror of
https://github.com/open-webui/computer.git
synced 2026-11-27 07:39:21 -05:00
refac
This commit is contained in:
1 parent
cbb33f091a
commit
d99169d94e
29 files changed
+219
-165
No files matched your search
@@ -81,6 +81,11 @@ def get_live_state(message_id: str) -> dict | None:
|
||||
return _task_state.get(message_id)
|
||||
|
||||
|
||||
def get_active_chat_ids() -> set[str]:
|
||||
"""Return the set of chat_ids that currently have a running task."""
|
||||
return {cid for mid, cid in _task_chat.items() if mid in _tasks and not _tasks[mid].done()}
|
||||
|
||||
|
||||
# ── Queue processing ────────────────────────────────────────
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user