(pool)
| 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() |