Try playing with the timeout options:
execute(conn, query, params, pool_timeout: 60_000, timeout: 60_000)