File tree 1 file changed +7
-1
lines changed
src/sagemaker/feature_store
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,11 @@ def wait(self, timeout=None):
238
238
timeout (Union[int, float]): ``concurrent.futures.TimeoutError`` will be raised
239
239
if timeout is reached.
240
240
"""
241
+ results = None
241
242
try :
242
- results = self ._async_result .get (timeout = timeout )
243
+ self ._async_result .wait (timeout = timeout )
244
+ if self ._async_result .ready () and self ._async_result ._success :
245
+ results = self ._async_result ._value
243
246
except KeyboardInterrupt as i :
244
247
# terminate workers abruptly on keyboard interrupt.
245
248
self ._processing_pool .terminate ()
@@ -251,6 +254,9 @@ def wait(self, timeout=None):
251
254
self ._processing_pool .close ()
252
255
self ._processing_pool .clear ()
253
256
257
+ if not results or results == NotImplementedError :
258
+ return
259
+
254
260
self ._failed_indices = [
255
261
failed_index for failed_indices in results for failed_index in failed_indices
256
262
]
You can’t perform that action at this time.
0 commit comments