-
Couldn't load subscription status.
- Fork 6
[WIP] Migrate to pymongo.asynchronous
#1235
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
base: main
Are you sure you want to change the base?
Conversation
supply correlation ID to logging formatter via third-party package
|
Basing my approach here on https://www.mongodb.com/docs/languages/python/pymongo-driver/current/reference/migration/#migrate-from-pymongo: Migrate from PyMongoThe PyMongo Async API behaves similarly to PyMongo, but all methods that perform network operations are coroutines and must be awaited. To migrate from PyMongo to PyMongo Async, you must update your code in the following ways:
Keep the following points in mind when migrating from synchronous PyMongo to the PyMongo Async API:
|
|
Re: using asyncio with dagster (reference):
@asset
async def asset1():
...
|
/metadata and /nmdcschema endpoints appear to work via manual inspection.
|
I pushed a WIP commit. Not expecting tests to pass.
I've done a lot of work in |
|
I've also done work in the |
On this branch, I
logging.config.dictConfigand using third-party middleware to inject correlation IDs into log entries (to correlate same-request async operations for load testing and for effective debugging of deployments) (96080a9)Details
...
Related issue(s)
Closes #787
Related subsystem(s)
docsdirectory)Testing
I tested these changes by...
Documentation
docsdirectory)Maintainability
study_id: str)# TODOor# FIXMEblackto format all the Python files I created/modified