Performance: run in progress vs ETA and last runs, in the Server tab and as a floating card

Floating cards share one base (float.js) with magnet docking; docked cards
stack in the corner. Durations come from ComfyUI's history timestamps, the
start of the current run from the execution_start event.
This commit is contained in:
Edouard Durand
2026-09-27 03:22:51 +00:00
parent b9aadf496b
commit 4fdbc035f4
11 changed files with 403 additions and 156 deletions
+6
View File
@@ -42,6 +42,12 @@ class FakeQueue:
def get_current_queue_volatile(self):
return list(self.running), list(self.pending)
history = {}
def get_history(self, prompt_id=None, max_items=None, offset=-1, map_function=None):
items = list(self.history.items())[-(max_items or len(self.history)):] if self.history else []
return {k: (map_function(v) if map_function else v) for k, v in items}
class FakePromptServer:
def __init__(self):