cleanup/refactor state history

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-09-12 16:12:43 -04:00
parent a8b850adf4
commit 175e9cbe29
41 changed files with 172 additions and 171 deletions
+2 -1
View File
@@ -101,6 +101,7 @@ def generate_click(job_id: str, state: str, active_tab: str, *args):
with call_queue.queue_lock:
yield [None, None, None, None, 'Control: starting', '']
shared.mem_mon.reset()
jobid = shared.state.begin('Control')
progress.start_task(job_id)
try:
t = time.perf_counter()
@@ -112,7 +113,7 @@ def generate_click(job_id: str, state: str, active_tab: str, *args):
errors.display(e, 'Control')
yield [None, None, None, None, f'Control: Exception: {e}', '']
progress.finish_task(job_id)
shared.state.end()
shared.state.end(jobid)
def create_ui(_blocks: gr.Blocks=None):