From b7e40f1a557806a487e6a6ea6d038bf7e6cb3031 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 20 Jan 2025 14:25:51 +0000 Subject: [PATCH] updateCodeStyle --- src/sagemaker/predictor_async.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/sagemaker/predictor_async.py b/src/sagemaker/predictor_async.py index b73768052f..783d034011 100644 --- a/src/sagemaker/predictor_async.py +++ b/src/sagemaker/predictor_async.py @@ -303,9 +303,11 @@ def check_failure_file(): output_thread.start() failure_thread.start() - while not output_file_found.is_set() and \ - not failure_file_found.is_set() and \ - not waiter_error_catched.is_set(): + while ( + not output_file_found.is_set() + and not failure_file_found.is_set() + and not waiter_error_catched.is_set() + ): time.sleep(1) if output_file_found.is_set():