-
Notifications
You must be signed in to change notification settings - Fork 10
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
MLCOMPUTE-967 | Spark config calculation should result in failure if srv-configs can't be read #142
Conversation
…srv-configs can't be read
@@ -397,6 +395,8 @@ def __init__(self): | |||
) = utils.load_spark_srv_conf() | |||
except Exception as e: | |||
log.error(f'Failed to load Spark srv configs: {e}') | |||
# should fail because Spark config calculation depends on values in srv-configs | |||
sys.exit(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.
might be a little cleaner to throw an exception - sys.exit()
outside of something like the driver for a script can be a little unexpected
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.
Yes good point
), | ||
) | ||
except Exception: | ||
ui_port = utils.ephemeral_port_reserve_range() |
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.
Add a warning log stating the error and back-up option.
no_aws_credentials
arg fromget_aws_credentials
function