mirror of https://github.com/langgenius/dify.git
fix(trigger): update event data publishing in TriggerDebugService
- Changed the event data publishing method in `TriggerDebugService` to use `model_dump()` for improved data structure handling when publishing to Redis Pub/Sub.
This commit is contained in:
parent
112fc3b1d1
commit
9249a2af0d
|
|
@ -181,7 +181,7 @@ class TriggerDebugService:
|
|||
|
||||
# Publish event via Pub/Sub
|
||||
channel = f"{cls.PUBSUB_CHANNEL_PREFIX}{session_id}"
|
||||
subscriber_count = redis_client.publish(channel, json.dumps(event_data))
|
||||
subscriber_count = redis_client.publish(channel, json.dumps(event_data.model_dump()))
|
||||
|
||||
if subscriber_count > 0:
|
||||
active_sessions += 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue