Skip to content

Commit

Permalink
Merge pull request #1161 from BalaBalaYi/add_wait_for_gierror
Browse files Browse the repository at this point in the history
add wait in service check
  • Loading branch information
BalaBalaYi committed Jun 18, 2024
2 parents 7fca2ba + 3a94a55 commit e0e095f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dlrover/python/master/scaler/pod_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,10 @@ def _check_master_service_avaliable(self, host, port, timeout=15):
except socket.gaierror:
logger.warning(
f"Attempt {i}: Encountered gaierror while "
f"performing master service check."
f"performing master service check. "
f"Service may not be available."
)
return False
time.sleep(1)
except Exception as e:
logger.warning(
f"Attempt {i}: Encountered {str(e)} while "
Expand Down

0 comments on commit e0e095f

Please sign in to comment.