-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
returncode
instead of stderr
to determine dbt graph loading e…
…rrors (#547) Before, `DbtGraph.load_via_dbt_ls` raises `CosmosLoadDbtException` whenever `stderr` is not empty. This behavior does not seem consistent, as non-blocking warnings can still make `cosmos` refuse to continue. A specific case that I encountered is an OpenBLAS warning that is produced by `podman` and [`composer-local-dev`](https://github.com/GoogleCloudPlatform/composer-local-dev): ``` OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k ``` This warning does not affect how `dbt` works, but `cosmos` still throws out an exception. This PR solves this.
- Loading branch information
1 parent
6a3ca35
commit d5ba070
Showing
2 changed files
with
62 additions
and
11 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