[Feature] publisher default set zmq in kv_event config (#26915)

Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
rongfu.leng
2025-10-22 19:19:33 +00:00
committed by GitHub
co-authored by Cyrus Leung
parent 1651003c35
commit 8669c69afa
2 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -353,12 +353,12 @@ class EventPublisherFactory:
cls, config: KVEventsConfig | None, data_parallel_rank: int = 0
) -> EventPublisher:
"""Create publisher from a config mapping."""
if not config:
if config is None or config.publisher == "null":
return NullEventPublisher()
config_dict = asdict(config)
kind = config_dict.pop("publisher", "null")
kind = config_dict.pop("publisher")
config_dict.pop("enable_kv_cache_events")
try:
constructor = cls._registry[kind]