[diffusion] refactor: change zmq socket type to router for scheduler (#15479)
This commit is contained in:
@@ -170,13 +170,7 @@ def get_zmq_socket(
|
||||
set_send_opt()
|
||||
elif socket_type == zmq.PULL:
|
||||
set_recv_opt()
|
||||
elif socket_type == zmq.DEALER:
|
||||
set_send_opt()
|
||||
set_recv_opt()
|
||||
elif socket_type == zmq.REQ:
|
||||
set_send_opt()
|
||||
set_recv_opt()
|
||||
elif socket_type == zmq.REP:
|
||||
elif socket_type in [zmq.DEALER, zmq.REQ, zmq.REP, zmq.ROUTER]:
|
||||
set_send_opt()
|
||||
set_recv_opt()
|
||||
else:
|
||||
|
||||
@@ -168,7 +168,7 @@ class StageProfiler:
|
||||
|
||||
if self.simple_log:
|
||||
self.logger.info(
|
||||
f"[{self.stage_name}] finished in {execution_time_s:.4f} seconds"
|
||||
f"[{self.stage_name}] finished in {execution_time_s:.4f} seconds",
|
||||
)
|
||||
|
||||
if self.metrics_enabled and self.timings:
|
||||
|
||||
Reference in New Issue
Block a user