Skip to content

fix: avoid AccessDenied error for a while on SageMaker Studio wtih do… #4600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 26, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sagemaker/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -8348,7 +8348,7 @@ def _logs_for_job( # noqa: C901 - suppress complexity warning for this method
"""
sagemaker_client = sagemaker_session.sagemaker_client
request_end_time = time.time() + timeout if timeout else None
description = sagemaker_client.describe_training_job(TrainingJobName=job_name)
description = _wait_until(lambda: sagemaker_client.describe_training_job(TrainingJobName=job_name))
print(secondary_training_status_message(description, None), end="")

instance_count, stream_names, positions, client, log_group, dot, color_wrap = _logs_init(
Expand Down
Loading