Skip to content

Commit be9b116

Browse files
committed
usage on bad network
ERROR parsl.process_loggers:process_loggers.py:30 Exceptional ending for cleanup on thread MainThread Traceback (most recent call last): File "/home/benc/parsl/src/parsl/parsl/process_loggers.py", line 26, in wrapped r = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/benc/parsl/src/parsl/parsl/dataflow/dflow.py", line 1262, in cleanup self.usage_tracker.close() File "/home/benc/parsl/src/parsl/parsl/usage_tracking/usage.py", line 231, in close proc.close() File "/usr/local/lib/python3.12/multiprocessing/process.py", line 181, in close raise ValueError("Cannot close a process while it is still running. " ValueError: Cannot close a process while it is still running. You should first call join() or terminate(). on my laptop when in a dev container with weird networking (aka network connections hang rather than connect... which probably means usage code is sitting inside some OS call?)
1 parent 2c19a8f commit be9b116

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parsl/usage_tracking/usage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,7 @@ def close(self, timeout: float = 10.0) -> None:
227227
if proc.is_alive():
228228
logger.warning("Usage tracking process did not end itself; sending SIGKILL")
229229
proc.kill()
230+
logger.warning("Joining on killed usage tracking process")
231+
proc.join()
230232

231233
proc.close()

0 commit comments

Comments
 (0)