-
Notifications
You must be signed in to change notification settings - Fork 154
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-752] dbt 1.1 timeout_seconds
behaviour change compared to dbt 1.0
#201
Comments
timeout_seconds
behaviour change compared to dbt 1.0timeout_seconds
behaviour change compared to dbt 1.0
👍 to this issue. We also have the same problem. This is a major bug! DBT Cloud can't be targeting Enterprise customers & breaking these kind of features. Brings severe trust issues with the product. |
@nishantnathhoney I'm so sorry you ran into this. Let me do my best to explain what happened here. Previously, That was confusing and undesirable behavior for many many users. They set a config thinking it took effect, and it was silently unused. So it was intended as a feature in v1.1 that timeout + retries are now configurable, and actually apply to most queries, one which we noted in our changelog, release notes, and docs upgrade guide. There are a few different timeout configs now (docs), offering more granular control, all of which apply only to the execution of one single query (=model). (dbt Cloud also has job-level timeout set at 24 hrs.) That said, we made sure (#159) to preserve backwards compatibility wherever possible. The default @jeremyyeo Since the time you opened this issue, I understand that, in dbt Cloud, we've increased the acceptable bound of this configuration to be >1 hour. Let's also discuss with the relevant folks internally if there's a mechanism to mark this config as "optional" in dbt Cloud. |
For those reading this now, you should be able to set the parameter up 6 hours1 (21600 seconds) in dbt Cloud: Footnotes
|
@jeremyyeo was there more that you wanted to discuss here or did you need more info? I'm going to close this out but please re-open if you want to keep the conversation going |
Where exactly in the dbt Cloud settings are you seeing "Job Execution/Job Retries" settings? I can only find a "Run Timeout" setting. |
Figured it out. It's in the connection settings for the environment. |
Im stuck on same issue can you share screentshot, It will be helpful. |
Account Settings -> Projects -> Click on the connection in Overview section |
This is acceptable to me! Thanks! |
## What are you changing in this pull request and why? Customers migrating from v1.0 → v1.1+ may run into an issue with BigQuery timeouts. dbt Cloud has always set a default per-model timeout of 5 minutes (= `300` seconds), but in older versions of dbt (including v1.0) this config was inconsistently applied. The "fix" in v1.1+ means that customers will see timeouts on long-running models for the first time, even though this is the expected behavior. Context: - dbt-labs/dbt-bigquery#201 Add a note about BigQuery timeouts to the list of "gotchas" for customers being migrated from v1.0 to newer versions
Describe the bug
I'm not 100% sure if this is a bug or perhaps it was a bug in 1.0 but is now fixed with 1.1 (release notes indicate some significant changes to timeouts)
The
timeout_seconds
config didn't use to apply in 1.0 but now is in 1.1.Steps To Reproduce
timeout_seconds
config on your default target, e.g.timeout_seconds
config above):dbt-bigquery==1.0
:dbt-bigquery==1.1
:Expected behavior
I guess this is expected? Seems like the config previously did nothing but now it IS doing something.
Screenshots and log output
System information
The output of
dbt --version
:The operating system you're using:
The output of
python --version
:Additional context
My current guess is somewhere around here:
https://github.com/dbt-labs/dbt-bigquery/blame/main/dbt/adapters/bigquery/connections.py#L585-L590
Introduced in 1.1.
The main reason I looked into this was because an enterprise client has a singular job/model that needs to run for quite a long time (more than 3600 - the max config allowed in dbt Cloud). This means that prior to 1.0, this config did nothing, allowing them to run a really long model but come 1.1, the config is now respected making it so that the model can no longer complete successfully in dbt Cloud.
I think the fix is simply to increase the dbt Cloud max allowable for this config.
The text was updated successfully, but these errors were encountered: