We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b381a commit 7685960Copy full SHA for 7685960
databases/backends/postgres.py
@@ -1,3 +1,4 @@
1
+import asyncio
2
import logging
3
import typing
4
from collections.abc import Mapping
@@ -66,7 +67,7 @@ async def connect(self) -> None:
66
67
68
async def disconnect(self) -> None:
69
assert self._pool is not None, "DatabaseBackend is not running"
- await self._pool.close()
70
+ await asyncio.wait_for(self._pool.close(), timeout=30)
71
self._pool = None
72
73
def connection(self) -> "PostgresConnection":
0 commit comments