I\'m trying to figure out how to set the connection timeout in create_engine(), so far I\'ve tried:
create_engine()
create_engine(url, timeout=10)
The right way is this one (connect_timeout instead of connection_timeout):
connect_timeout
connection_timeout
create_engine(db_url, connect_args={'connect_timeout': 10})
...and it works with both Postgres and MySQL
ps: (the timeout is defined in seconds)