-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-2129] [Bug] dbt --version hangs when access to PyPi is not available #6992
Comments
Thanks for opening @flyingTiemen! Paraphrasing from a slack convo I had with @aranke @stu-k a few weeks ago:
I think the quickest quality-of-life improvement here would be adding an aggressive timeout (e.g. 1s) to this line: Line 45 in b7884fa
resp = requests.get(version_url, timeout=1) Would you be interested in contributing that quick change? |
Tested the quick change, that works fine. I'm new to contributing to a project on GitHub, I'm not sure if I can add. I'm also behind a firewall which makes access to GiHub a bit problematic (for cloning and commits etc). |
Potentially a dupe of #6085 |
I'm going to mark this as a @aranke Should we keep #6085 open, and more narrowly scoped to the "best" solution proposed above — yielding information as it becomes available? (I think that's what your approach in #6083 was after) |
Yup, sounds good @jtcohen6! |
Is this a new bug in dbt-core?
Current Behavior
When using dbt --version a check is done at PypI.org if a newer version is available.
In many compagnies access to the internet is restricted. In that case dbt --version does wait forever and never exits.
Expected Behavior
Make check at PyPi optional, or at least, timeout this check after some time in a proper way.
Steps To Reproduce
dbt --version without access to PyPi.org
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: