-
Notifications
You must be signed in to change notification settings - Fork 39
3.3.0 broken - switching from asyncio.get_event_loop() to asyncio.run() causing major issues #124
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
Comments
Running code in aws lambda with python 3.11 runtime |
@Zippy1999 are you using the hack I documented in this issue?
Because it looks like the change in 3.3.0 broke this hack - in which case I think the right thing to do is remove the hack. |
@SamStephens thanks for responding 👍 I've checked the code in the affected lambda - we are not currently implementing this hack. I know that I am investigating to see how much work it would be to move to replace any instances of I know we can't stop progress nor would I want to 😆 - but a small warning on the release notes of |
@Zippy1999 sorry, I missed that you're using |
In version 3.2.0, calls to get the running event loop were executed with
asyncio.get_event_loop
/run_until_complete
In version 3.3.0
asyncio.run()
has been used instead. This closes the running event loop after the code is executed.When using this in lambda code which needs to run
asyncio.get_event_loop
it causes subsequent executions to failThe failure errors:
The changed code is in
__init__.py
in themetric_scope
decorator.The text was updated successfully, but these errors were encountered: