Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix comparison bug in ApplicationQueueManager (#1919)

waltcowa82b4d315ab1
diff --git a/api/core/application_queue_manager.py b/api/core/application_queue_manager.py
index fd549ff39f1..e32d631295e 100644
--- a/api/core/application_queue_manager.py
+++ b/api/core/application_queue_manager.py
@@ -173,7 +173,7 @@ class ApplicationQueueManager:
return
user_prefix = 'account' if invoke_from in [InvokeFrom.EXPLORE, InvokeFrom.DEBUGGER] else 'end-user'
- if result != f"{user_prefix}-{user_id}":
+ if result.decode('utf-8') != f"{user_prefix}-{user_id}":
return
stopped_cache_key = cls._generate_stopped_cache_key(task_id)