From 6a30fdf66b26f2c40a7c6d260f747b254bd2a46c Mon Sep 17 00:00:00 2001 From: sangjun-kang Date: Tue, 9 Jan 2024 11:13:58 +0900 Subject: [PATCH] delete invalid log --- skyplane/gateway/operators/gateway_operator.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/skyplane/gateway/operators/gateway_operator.py b/skyplane/gateway/operators/gateway_operator.py index 708f63c8..3ff0d1ea 100644 --- a/skyplane/gateway/operators/gateway_operator.py +++ b/skyplane/gateway/operators/gateway_operator.py @@ -389,15 +389,14 @@ def socket_connection(): print(f"[sender-{self.worker_id}]:{chunk_id} error sending chunk {e}") retry_count += 1 if retry_count < max_retries: - print(f"SCP DEV - Retrying (attempt {retry_count} of {max_retries})...") - # 이 위치에 에러 파일 만들기 - with open(f"/skyplane/header.to_socket_{retry_count}_{dst_host}_error.txt", "w") as f: - f.write(str(e)) + # print(f"SCP DEV - Retrying (attempt {retry_count} of {max_retries})...") + # with open(f"/skyplane/header.to_socket_{retry_count}_{dst_host}_error.txt", "w") as f: + # f.write(str(e)) time.sleep(0.5) socket_connection() sock = self.destination_sockets[dst_host] else: - print(f"SCP DEV - Max retries ({max_retries}) reached. Giving up.") + # print(f"SCP DEV - Max retries ({max_retries}) reached. Giving up.") raise e else: break