我正在试图找出如何将连接超时设置为create_engine()
,到目前为止,我已经try 了:
create_engine(url, timeout=10)
TypeError:使用配置PGALYONE_psycopg2/QueuePool/engine向创建_engine()发送的参数"超时"无效.请查收
create_engine(url, connection_timeout=10)
TypeError:发送到的参数"连接超时"无效
create_engine(db_url, connect_args={'timeout': 10})
(psycopg2.OperationalError)连接选项无效
create_engine(db_url, connect_args={'connection_timeout': 10})
(psycopg2.OperationalError)连接选项无效
create_engine(url, pool_timeout=10)
我该怎么办?