-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
AsyncMongoClient.close() currently signals each background task (Monitor) it owns to stop, but does not actually await their completion, nor does it cancel them as part of shutting down. A client closing should also stop all background tasks it owns, waiting for them to exit before returning from its close method.
Note: this will likely cause further issues with our unittest test suite due to the isolated loop nature of the unittest classes and our existing workarounds.
- depends on
-
PYTHON-5036 Migrate fully away from unittest to pytest
- Backlog
- is related to
-
PYTHON-5071 Async tests should all share a single event loop
- Closed
-
PYTHON-5056 Test Failure - PyOpenSSL Windows test failing with 1 hour timeout
- Backlog