-
Notifications
You must be signed in to change notification settings - Fork 180
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
LoadMode.DBT_LS unnecessarily requires render_config.dbt_deps=True #602
Comments
Hi @nicohein , thank you very much for the feedback! I just reviewed the code that should be generating this exception: astronomer-cosmos/cosmos/dbt/graph.py Lines 242 to 245 in d61f120
And, ATM, this exception should only be raised if dbt itself outputs It surprises me that Cosmos will raise this exception if you set There may be an issue with the logic somewhere, but if dbt complains about dependencies not being installed - the other dbt commands will not work. Cosmos has been raising exceptions in this scenario since 1.1.2: I believe the logic can be improved by not running |
Hi, @nicohein, I'm helping the Cosmos team manage their backlog and am marking this issue as stale. From what I understand, you raised an issue regarding a change in version 1.2.0 that causes an error when using LoadMode.DBT_LS, requiring render_config.dbt_deps to be set to True. There was a suggestion to improve the logic to avoid running Could you please confirm if this issue is still relevant to the latest version of the Cosmos repository? If it is, please let the Cosmos team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your understanding and cooperation. |
Hi @tatiana, |
🤖 Hi @nicohein, Thank you for your response and understanding. We appreciate your cooperation. We'll go ahead and close this issue now. Best regards, This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
With the version 1.2.0 I got the below error with the
LoadMode.DBT_LS
.The below config was working with version 1.1.2.
There are no dependencies required for dbt_ls in my setup. I fully understand that there are cases but it's not universally true.
This enforced setting leads to a dag load times of between 45 and 70s (up from 25s) which I find very long with all our (more than 200) other DAGs loading below a single second.
My suggestion would be to throw a warning instead of an error: https://github.com/astronomer/astronomer-cosmos/blame/main/cosmos/dbt/graph.py#L244
I would understand the behavior if the dbt ls command was throwing an error but this is generated from stdout, hence the request.
The text was updated successfully, but these errors were encountered: