[Bug] Incorrect 'done' signal - leading to premature start of downstream models #1387
Open
2 tasks done
Labels
bug
Something isn't working
Is this a new bug in dbt-bigquery?
Current Behavior
It appears that dbt received an incorrect 'done' signal or interpreted some BQ communication as a 'done' signal and continued with the next model in the DAG leading to it having outdated information since the upstream table was not finished yet.
In the dbt LOG it looks like this
Here it looks like the first model ran only for 4 minutes. But the BIGQUERY JOB Logs show that the upstream_model finished at 08:53:22. This matches what we'd expect. The query usually takes about 30 minutes to run. And it also matches with the outdated data that was present in the downstream_model but updated data in the upstream_model.
Very interesting is the "None processed" part in the second line, which we have never gotten before this model.
Expected Behavior
We would expect the dbt log to be in line with BigQuery Log regarding the model and we would expect the processed size information to be a positive human readable size figure and not 'None'.
Steps To Reproduce
Not reproducible. Rerunning the model fixed the issue. We found this has happened before with other models, but it is rare. It seems to be a fluke.
Relevant log output
Environment
Additional Context
This is a simple table model and we ran it every day for over a year without any issues, it runs in a container of which the configs have not been changed for the last year. Literally just re-runnung the dbt run command fixed the issue, so it's not something we can reproduce.
The text was updated successfully, but these errors were encountered: