fix(sdk): print max_attempts instead of sleep_duration (#8523)

This commit is contained in:
Alex 2022-12-02 14:32:16 -05:00 committed by GitHub
parent 00c6b01040
commit 1d6a52b9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ class Client:
sleep_duration: Time in seconds between retries.
Returns:
JSON response from the healtz endpoint.
JSON response from the healthz endpoint.
"""
count = 0
response = None
@ -427,7 +427,7 @@ class Client:
except kfp_server_api.ApiException:
# logging.exception also logs detailed info about the ApiException
logging.exception(
f'Failed to get healthz info attempt {count} of {sleep_duration}.'
f'Failed to get healthz info attempt {count} of {max_attempts}.'
)
time.sleep(sleep_duration)