[Feature] Quick connection timeout for anonymous snowplow tracking #9989
Labels
enhancement
New feature or request
help_wanted
Trickier changes, with a clear starting point, good for previous/experienced contributors
Is this a new bug in dbt-core?
Current Behavior
More info in #9336
I was running
dbt-duckdb
on a place (no Internet), and saw that any run was hanging for 30s. It ran a few models for a couple of seconds, then stopped for 30 seconds, and then ran the rest of the models.I tried the following and had the same behaviour:
When running with
DO_NOT_TRACK=1
, then run doesn't hangExpected Behavior
dbt shouldn't wait 30 seconds to send tracking info when there is no access to the Internet or to the tracking endpoint
Steps To Reproduce
dbt run
on a small model (this will need to use a local DW, like postgres, or duckdb)Relevant log output
No response
Environment
- OS: MacOS
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
Saw the behaviour with
dbt-duckdb
but this is not dependent on the adapter.Relevant code seems to be here
dbt-core/core/dbt/tracking.py
Line 59 in afb2d61
The text was updated successfully, but these errors were encountered: