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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(redis): Redis Cluster eval errors by adding hash tags to trigger debug keys (#31701)
Jax95d68437d1b4
diff --git a/api/core/trigger/debug/event_bus.py b/api/core/trigger/debug/event_bus.pyindex 9d10e1a0e0e..e3fb6a13d9b 100644--- a/api/core/trigger/debug/event_bus.py+++ b/api/core/trigger/debug/event_bus.py@@ -23,8 +23,8 @@ class TriggerDebugEventBus:"""# LUA_SELECT: Atomic poll or register for event- # KEYS[1] = trigger_debug_inbox:{tenant_id}:{address_id}- # KEYS[2] = trigger_debug_waiting_pool:{tenant_id}:...+ # KEYS[1] = trigger_debug_inbox:{<tenant_id>}:<address_id>+ # KEYS[2] = trigger_debug_waiting_pool:{<tenant_id>}:...# ARGV[1] = address_idLUA_SELECT = ("local v=redis.call('GET',KEYS[1]);"@@ -35,7 +35,7 @@ class TriggerDebugEventBus:)# LUA_DISPATCH: Dispatch event to all waiting addresses- # KEYS[1] = trigger_debug_waiting_pool:{tenant_id}:...+ # KEYS[1] = trigger_debug_waiting_pool:{<tenant_id>}:...# ARGV[1] = tenant_id# ARGV[2] = event_jsonLUA_DISPATCH = (@@ -43,7 +43,7 @@ class TriggerDebugEventBus:"if #a==0 then return 0 end;""redis.call('DEL',KEYS[1]);""for i=1,#a do "- f"redis.call('SET','trigger_debug_inbox:'..ARGV[1]..':'..a[i],ARGV[2],'EX',{TRIGGER_DEBUG_EVENT_TTL});"+ f"redis.call('SET','trigger_debug_inbox:{{'..ARGV[1]..'}}'..':'..a[i],ARGV[2],'EX',{TRIGGER_DEBUG_EVENT_TTL});""end;""return #a")@@ -108,7 +108,7 @@ class TriggerDebugEventBus:Event object if available, None otherwise"""address_id: str = hashlib.sha256(f"{user_id}|{app_id}|{node_id}".encode()).hexdigest()- address: str = f"trigger_debug_inbox:{tenant_id}:{address_id}"+ address: str = f"trigger_debug_inbox:{{{tenant_id}}}:{address_id}"try:event_data = redis_client.eval(diff --git a/api/core/trigger/debug/events.py b/api/core/trigger/debug/events.pyindex 9f7bab5e497..9aec342ed1b 100644--- a/api/core/trigger/debug/events.py+++ b/api/core/trigger/debug/events.py@@ -42,7 +42,7 @@ def build_webhook_pool_key(tenant_id: str, app_id: str, node_id: str) -> str:app_id: App IDnode_id: Node ID"""- return f"{TriggerDebugPoolKey.WEBHOOK}:{tenant_id}:{app_id}:{node_id}"+ return f"{TriggerDebugPoolKey.WEBHOOK}:{{{tenant_id}}}:{app_id}:{node_id}"class PluginTriggerDebugEvent(BaseDebugEvent):@@ -64,4 +64,4 @@ def build_plugin_pool_key(tenant_id: str, provider_id: str, subscription_id: strprovider_id: Provider IDsubscription_id: Subscription ID"""- return f"{TriggerDebugPoolKey.PLUGIN}:{tenant_id}:{str(provider_id)}:{subscription_id}:{name}"+ return f"{TriggerDebugPoolKey.PLUGIN}:{{{tenant_id}}}:{str(provider_id)}:{subscription_id}:{name}"