Skip to content

Tech debt: Note about asyncio.get_event_loop() failling in Python 3.12+ #7397

@ryancausey

Description

@ryancausey

Why is this needed?

While perusing the code to understand how AsyncBatchProcessor starts the event loop, I found the following note in the code for BasePartialProcessor:

loop = asyncio.get_event_loop() # NOTE: this might return an error starting in Python 3.12 in a few years

Now that Lambda has the Python 3.13 runtime, this should probably re-evaluated to determine if any work is needed here to solve the concern or if the note can be removed.

Which area does this relate to?

Batch processing

Suggestion

Write a test to confirm whatever concern that prompted the note is or is not happening. If it happens, resolve the bug. If it doesn't happen, remove the note.

Acknowledgment

Metadata

Metadata

Labels

internalMaintenance changespending-releaseFix or implementation already in dev waiting to be released

Projects

Status

Coming soon

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions