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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user