-
Notifications
You must be signed in to change notification settings - Fork 0
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
Alma job names handling #146
Conversation
Why these changes are being introduced: We changed some configurations in AWS so that the job names are all stored in SSM. Because of this we can include the AWS environment in the job name, which should be the complete job name for POD and Bursar jobs, TIMDEX is an exception. The TIMDEX job name should include the AWS environment, but is still technically a prefix because TIMDEX job names end with the type (full or daily), but we don't want to have two separate environment variables for each of those job types. How this addresses that need: * Updated readme * Changed the name of the bursar job name env variable * Reordered the check for matching environments to come first * updated the tests to use the new variable name * updated the tests to inclue the environment name in test environment variables
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.
Looks good to me, I like the log message updates. Just 2 typos
@@ -29,6 +29,10 @@ | |||
logger.info("No Sentry DSN found, exceptions will not be sent to Sentry") | |||
|
|||
|
|||
class JobTypeError(Exception): |
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.
Typos for unknown
and received
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.
Looks good to me.
@@ -29,6 +29,10 @@ | |||
logger.info("No Sentry DSN found, exceptions will not be sent to Sentry") | |||
|
|||
|
|||
class JobTypeError(Exception): |
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.
I like this explicit exception type here.
Pull Request Test Coverage Report for Build 6015629858
💛 - Coveralls |
What does this PR do?
Supports storing job names in SSM and including the AWS environment as part of the job name
Includes new or updated dependencies?
YES
What are the relevant tickets?
https://mitlibraries.atlassian.net/browse/ENSY-178
Developer
Code Reviewer