MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / worker

Method worker

tests/test_adversity.py:91–93  ·  view source on GitHub ↗
(pool)

Source from the content-addressed store, hash-verified

89 worst_runtime = (pool_timeout + cmd_timeout) * pool_concurrency * 1.2
90
91 async def worker(pool):
92 async with pool.acquire(timeout=pool_timeout) as con:
93 await con.fetch('SELECT pg_sleep($1)', query_runtime)
94
95 def kill_connectivity():
96 self.proxy.trigger_connectivity_loss()

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected