Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shut down usage tracking harder #3392

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion parsl/usage_tracking/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ def close(self, timeout: float = 10.0) -> None:
or won't respond to SIGTERM.
"""
for proc in self.procs:
logger.debug("Joining usage tracking process %s", proc)
proc.join(timeout=timeout)
if proc.is_alive():
logger.info("Usage tracking process did not end itself; sending SIGKILL")
logger.warning("Usage tracking process did not end itself; sending SIGKILL")
proc.kill()

proc.close()