-
Notifications
You must be signed in to change notification settings - Fork 0
feat(script): add script for extracting stand-in events from Cosmos DB #28
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
feat(script): add script for extracting stand-in events from Cosmos DB #28
Conversation
✨ Added Python script to extract stand-in events within specified date range. PAGOPA-2991
The default action is to increase the PATCH number of SEMVER. Set IGNORE-FOR-RELEASE if you want to skip SEMVER bump. BREAKING-CHANGE and NEW-RELEASE must be run from GH Actions section manually. |
The default action is to increase the |
This pull request does not contain a valid label. Please add one of the following labels: |
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.
LGTM evaluate to use read replica in PROD for this query
scripts/standin_events_extractor.py
Outdated
"""Create and return a Cosmos DB client using connection string""" | ||
try: | ||
connection_string = args.cosmos_connection_string | ||
client = CosmosClient.from_connection_string(connection_string) |
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.
to avoid abuse RU in prod env , use preferred_locations
to switch report query on read replica
https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/best-practice-python#sdk-usage
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.
thank you for this advice
Comment this PR with update_code to format the code. Consider to use pre-commit to format the code. |
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.
🚀
List of Changes
✨ Added Python script to extract stand-in events within specified date range.
Motivation and Context
PAGOPA-2991
How Has This Been Tested?
manually
Screenshots (if appropriate):
Types of changes
Checklist: