-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix: Bug fixes for s3 path validation, mlflow app creation #5402
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
Conversation
| error_msg = f"MLflow app creation failed. Current status: {new_app.status}" | ||
| if hasattr(new_app, 'failure_reason') and new_app.failure_reason: | ||
| error_msg += f". Reason: {new_app.failure_reason}" | ||
| raise RuntimeError(error_msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to raise error in case of timeout exception or should just display error message ? If MLFlow app is required parameter for CTJ API then it's fine to throw error.
| if "NoSuchBucket" in str(e) or "Not Found" in str(e): | ||
| # Create bucket | ||
| region = sagemaker_session.boto_region_name | ||
| if region == 'us-east-1': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this region specific check here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected for s3
…ianers to maintain consistency
| if "NoSuchBucket" in str(e) or "Not Found" in str(e): | ||
| # Create bucket | ||
| region = sagemaker_session.boto_region_name | ||
| if region == 'us-east-1': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected for s3
Issue #, if available:
Description of changes:
Testing:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.