Skip to content

Commit

Permalink
Pass shutdown exception
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexfvk committed Sep 19, 2024
1 parent 00f1eee commit 1571a11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ch_backup/storage/async_pipeline/base_pipeline/exec_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,7 @@ def __del__(self) -> None:
"""
Shutdown pool explicitly to prevent the program from hanging in case of ungraceful termination.
"""
self.shutdown(graceful=False)
try:
self.shutdown(graceful=True)
except Exception: # nosec B110
pass

0 comments on commit 1571a11

Please sign in to comment.