Skip to content

Commit

Permalink
Force result_watcher shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
yadudoc committed Jan 15, 2025
1 parent b6510ee commit 464c202
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parsl/executors/globus_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,9 @@ def shutdown(self):
GCE.shutdown will cancel all futures that have not yet registered with
Globus Compute and will not wait for the launched futures to complete.
This method explicitly shutsdown the result_watcher thread to avoid
it waiting for outstanding futures at thread exit.
"""
self.executor.shutdown(wait=False, cancel_futures=True)
result_watcher = self.executor._get_result_watcher()
result_watcher.shutdown(wait=False, cancel_futures=True)

0 comments on commit 464c202

Please sign in to comment.