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

Method worker

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

Source from the content-addressed store, hash-verified

67 worst_runtime = (pool_timeout + cmd_timeout) * pool_concurrency * 1.2
68
69 async def worker(pool):
70 async with pool.acquire(timeout=pool_timeout) as con:
71 await con.fetch('SELECT pg_sleep($1)', query_runtime)
72
73 def kill_connectivity():
74 self.proxy.trigger_connectivity_loss()

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected