-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Bug] The key has to be less than 250 characters #1440
Comments
To address the issue of long task names generated by Regarding the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
After upgrading Cosmos from 1.7.1 to 1.8.1, I also started experiencing problems caused by excessively long task names, though in my case it's another part of Airflow that's complaining about the 250 character limit:
|
Thank you for reporting the issue. @ms32035 @jtrobles-cdd, I’m curious—did you only upgrade Cosmos, or was there also an upgrade to Airflow? Additionally, since Airflow limits task keys to fewer than 250 characters, do you have any suggestions on how we could shorten the task keys while still making them identifiable in terms of the node they represent? Any ideas here would help us address the issue in a more user-friendly way. @ms32035, regarding your comment:
This is expected behavior, as outlined in the documentation: https://github.com/astronomer/astronomer-cosmos/blob/main/docs/configuration/testing-behavior.rst. You can refer to the section titled |
@pankajkoti it's just Cosmos upgrade One workaround idea I have, which is not exactly user friendly is to use the hash of the test that dbt generates On the |
Only Cosmos. I've been using Airflow 2.10.4 (with Astro Runtime 12.6.0) for many weeks without issues. |
Running into this too since cosmos==1.8.1. @pankajkoti We could group these tests by joint parents. E.g. for |
Astronomer Cosmos Version
1.8.1
dbt-core version
1.9.0
Versions of dbt adapters
No response
LoadMode
DBT_LS_MANIFEST
ExecutionMode
KUBERNETES
InvocationMode
None
airflow version
2.10.4
Operating System
Debian GNU/Linux 12 (bookworm)
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
What happened?
Looks like for #1433 in case of some tests provided by packages like dbt_utils or dbt_expectations the names generated are absurdly long
and result in:
Additionally, it seems that tests are generated as their own task regardless of the
test_behaviour
setting. Specifically, these are generated when the value isAFTER_ALL
Relevant log output
How to reproduce
Create a test using
dbt_utils.relationships_where
where table and column names are longAnything else :)?
No response
Are you willing to submit PR?
Contact Details
No response
The text was updated successfully, but these errors were encountered: