Skip to content
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

Print the key name when max_length is exceeded #43061

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

jabbera
Copy link
Contributor

@jabbera jabbera commented Oct 16, 2024

We had the ambiguous error show up in our logs: airflow.exceptions.AirflowException: The key has to be less than 250 characters. We had a task_id >= 250 characters and it was because of long task group names and some nesting. The log message was not helpful in pointing out where the error was. Adding the key value to the exception was super helpful diagnosing where the issue was.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member

potiuk commented Oct 16, 2024

cc: @o-nikolas re our discussions with long task_id and MySQL.

@potiuk
Copy link
Member

potiuk commented Oct 16, 2024

Can you please fix the unit test @jabbera ?

@jabbera
Copy link
Contributor Author

jabbera commented Oct 16, 2024

Can you please fix the unit test @jabbera ?

@potiuk Should be all set.

@o-nikolas
Copy link
Contributor

cc: @o-nikolas re our discussions with long task_id and MySQL.

Thanks @potiuk! Looking 👀

@potiuk potiuk merged commit 3f8ac22 into apache:main Oct 17, 2024
80 checks passed
R7L208 pushed a commit to R7L208/airflow that referenced this pull request Oct 17, 2024
* Print the key name when max_length is exceeded

* Fix tests
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
* Print the key name when max_length is exceeded

* Fix tests
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
* Print the key name when max_length is exceeded

* Fix tests
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
* Print the key name when max_length is exceeded

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants