Describe the bug
When after upgrade tortoise-orm version to 0.19.0 intermittently occur exception after update_or_create(not raw query)
Stack trace
asyncpg.exceptions._base:InterfaceError: Pool.release() received invalid connection: <PoolConnectionProxy <asyncpg.connection.Connection object at 0x7fee288912e0> 0x7fee222c5d00> is not a member of this pool
Traceback:
...
File "/x/.venv/lib/python3.9/site-packages/tortoise/models.py", line 1098, in update_or_create
File "/x/.venv/lib/python3.9/site-packages/tortoise/backends/base/client.py", line 283, in __aexit__
File "/x/.venv/lib/python3.9/site-packages/asyncpg/pool.py", line 812, in release
Additional context
When I use 0.17.7(before upgrade), never met this
I think it is related to #1001 .. (not sure)
Describe the bug
When after upgrade tortoise-orm version to
0.19.0intermittently occur exception afterupdate_or_create(not raw query)Additional context
When I use
0.17.7(before upgrade), never met thisI think it is related to #1001 .. (not sure)