-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow users to opt-out
dbtRunner
during DAG parsing (#1495)
Introduce `RenderConfig(invocation_mode)` so users can opt out of the now default behaviour of Cosmos of running dbt ls using `dbtRunner` as opposed to the Python subprocess - similar to what was done for task execution in `ExecutionConfig`. While the change introduced in #1484 is a significant performance gain, and we believe we should be Cosmos' default behaviour, we realise it may break some users, as described below. A customer mentioned they had the following setup: - `dbt-databricks` installed in the same Python virtualenv as Cosmos/Airflow - `dbt-bigquery` installed in a separate Python virtualenv using Astro Dockerfile And run DAGs using both with the same image. This means 1.9.0a3 breaks them since they use `LoadMode.DBT_LS` and only `dbt-data bricks` can be parsed. Users can now opt-out of using `dbtRunner` to run `dbt ls` during DAG parsing by setting: ``` DbtDag( render_config=RenderConfig( load_method=LoadMode.DBT_LS, invocation_mode=InvocationMode.SUBPROCESS ) # ..., ) ```
- Loading branch information
Showing
6 changed files
with
121 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters