CLI hangs if DB can't connect, unable to CTRL+C #1001
Unanswered
Kangaroux
asked this question in
Usage Questions
Replies: 1 comment
-
this is not a SQLAlchemy issue as SQLAlchemy does not intercept the KeyboardInterrupt error. you likely want to consult the issue tracker for the DBAPI you're using (not stated here) and/or consult the Python mailing list. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
If the CLI can't connect to the DB because of a firewall or other issue, it never seems to timeout, and you can't stop it with CTRL+C or CTRL+D.
Expected behavior
Include a timeout (5s?) and/or allow CTRL+C to kill the CLI.
To Reproduce
In the DB conn str, set the database host to something like
example.com
Versions.
Have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions