We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7623da commit 142bf49Copy full SHA for 142bf49
adaptive/runner.py
@@ -7,6 +7,7 @@
7
import functools
8
import inspect
9
import os
10
+import sys
11
import time
12
import traceback
13
import warnings
@@ -241,7 +242,12 @@ def _remove_unfinished(self):
241
242
243
def _cleanup(self):
244
if self.shutdown_executor:
- self.executor.shutdown(wait=False)
245
+ # XXX: temporary set wait=True for Python 3.7
246
+ # see https://github.com/python-adaptive/adaptive/issues/156
247
+ # and https://github.com/python-adaptive/adaptive/pull/164
248
+ self.executor.shutdown(
249
+ wait=True if sys.version_info >= (3, 7) else False
250
+ )
251
self.end_time = time.time()
252
253
@property
0 commit comments