@@ -32,7 +32,7 @@ def __init__(self,
32
32
monitoring_hub_address : str = "127.0.0.1" ,
33
33
logdir : str = "." ,
34
34
logging_level : int = logging .INFO ,
35
- atexit_timeout : int = 3 , # in seconds
35
+ atexit_timeout : float , # in seconds
36
36
priority_msgs : "queue.Queue[AddressedMonitoringMessage]" ,
37
37
node_msgs : "queue.Queue[AddressedMonitoringMessage]" ,
38
38
block_msgs : "queue.Queue[AddressedMonitoringMessage]" ,
@@ -55,7 +55,8 @@ def __init__(self,
55
55
logging_level : int
56
56
Logging level as defined in the logging module. Default: logging.INFO
57
57
atexit_timeout : float, optional
58
- The amount of time in seconds to terminate the hub without receiving any messages, after the last dfk workflow message is received.
58
+ The amount of time in seconds to wait for more UDP messages at shutdown, after the last DFK
59
+ workflow message is received.
59
60
*_msgs : Queue
60
61
Four multiprocessing queues to receive messages, routed by type tag, and sometimes modified according to type tag.
61
62
@@ -214,6 +215,8 @@ def router_starter(comm_q: "queue.Queue[Union[Tuple[int, int], str]]",
214
215
udp_port : Optional [int ],
215
216
zmq_port_range : Tuple [int , int ],
216
217
218
+ udp_atexit_timeout : float ,
219
+
217
220
logdir : str ,
218
221
logging_level : int ) -> None :
219
222
setproctitle ("parsl: monitoring router" )
@@ -227,7 +230,8 @@ def router_starter(comm_q: "queue.Queue[Union[Tuple[int, int], str]]",
227
230
node_msgs = node_msgs ,
228
231
block_msgs = block_msgs ,
229
232
resource_msgs = resource_msgs ,
230
- exit_event = exit_event )
233
+ exit_event = exit_event ,
234
+ atexit_timeout = udp_atexit_timeout )
231
235
except Exception as e :
232
236
logger .error ("MonitoringRouter construction failed." , exc_info = True )
233
237
comm_q .put (f"Monitoring router construction failed: { e } " )
0 commit comments