Skip to content

Commit

Permalink
shutdown dask cluster gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Ai committed Nov 25, 2024
1 parent 50fdef1 commit 7fe2af4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions odc/stats/proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ def run(
)
raise ValueError("Must supply one of tasks= or sqs=")

def __del__(self):
if self.client():
self.client().close()


def get_max_mem() -> int:
"""
Expand Down

0 comments on commit 7fe2af4

Please sign in to comment.