PYTHON-6187In Code Review

a cancelled async command gets no CommandFailedEvent

*Summary:* No CommandFailedEvent (and no "Command failed" log message) when an async operation is cancelled *Description* When an asyncio task is cancelled while a command waits for its reply — {{{}task.cancel(){}}}, {{asyncio.timeout()}} / {{{}asyncio.wait_for(){}}}, a failing TaskGroup sibling, or an ASGI server cancelling a disconnected client's request — PyMongo publishes the {{CommandStartedEvent}} but never a correlating {{CommandSucceededEvent}} or {{{}CommandFailedEvent{}}}. The st

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
greenerbuild