From 0b0cce40e3e9ecc1912cccc0f347d246917911e4 Mon Sep 17 00:00:00 2001 From: Simon Cordt Date: Sun, 28 Sep 2025 06:24:18 +0200 Subject: [PATCH] Fix: Ensure sampler counts are updated correctly for running jobs --- server/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/manager.py b/server/manager.py index 9bbb124..5186bf1 100644 --- a/server/manager.py +++ b/server/manager.py @@ -301,7 +301,8 @@ class PersistentQueueManager: try: # Always fetch fresh workflow from DB for running jobs to avoid stale prompt data # This ensures we get the correct sampler count even if the workflow was modified - sampler_count_by_id[pid] = int(self._get_total_samplers(pid, None)) + prompt = running_prompts[pid] + sampler_count_by_id[pid] = int(self._get_total_samplers(pid, prompt)) except Exception: pass except Exception: