[Feature] Fail DAG Execution When dbt Nodes or Paths Don’t Exist #1435
Labels
area:execution
Related to the execution environment/mode, like Docker, Kubernetes, Local, VirtualEnv, etc
enhancement
New feature or request
triage-needed
Items need to be reviewed / assigned to milestone
Description
Currently, when dbt-core is executed with a node name or path that doesn’t exist, it prints "nothing to do" and completes successfully. While this behavior makes sense from a program perspective, it can lead to issues in Cosmos workflows when nodes or paths are misspelled or incorrectly configured.
For instance, consider a dbt DAG structured as follows:
If there is a typo in the select command for B, the dbt task for B does nothing, but C continues to run and succeeds. This behavior makes it difficult to identify configuration errors, especially in scenarios where node or tag names change but are not updated consistently across the workflow.
We propose a feature in Cosmos to treat dbt nodes or paths that result in "nothing to do" as a failure. This would ensure that:
Use case/motivation
This feature would help users:
Proposed Solution
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: