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 476a20a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,8 @@ 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:
pass

0 comments on commit 476a20a

Please sign in to comment.