Skip to content

Conversation

@jedcunningham
Copy link
Member

This PR does a few things:

  • cleans out old entries of deprecated_values - these have been emitting warnings in AF2 for a while now.
  • Remove the "update by version" from the warning.
  • Adds the old default value for [logging] log_filename_template into the list - this old default breaks logging in Airflow 3.

Closes: #46972

This PR does a few things:

- cleans out old entries of `deprecated_values` - these have been
  emitting warnings in AF2 for a while now.
- Remove the "update by version" from the warning.
- Adds the old default value for `[logging] log_filename_template` into the list - this
  old default breaks logging in Airflow 3.

Closes: apache#46972
@Lee-W Lee-W self-requested a review March 14, 2025 07:34
@Lee-W Lee-W added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Mar 14, 2025

* Migration rules needed
* [ ] Remove ``[core] hostname`` configuration option from config if value is ``:``
* [ ] Remove ``[email] email_backend`` configuration option from config if value is ``airflow.contrib.utils.sendgrid.send_email``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of removing it, should we change it to airflow.providers.sendgrid.utils.emailer.send_email instead

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could, all of these could, but duplicating default values isn't the best practice anyways.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, right. Thanks for confirming!

@jedcunningham jedcunningham merged commit 6c88f4e into apache:main Mar 14, 2025
45 checks passed
@jedcunningham jedcunningham deleted the fixup_log_filename_template_bad_old_default branch March 14, 2025 14:50
agupta01 pushed a commit to agupta01/airflow that referenced this pull request Mar 21, 2025
This PR does a few things:

- cleans out old entries of `deprecated_values` - these have been
  emitting warnings in AF2 for a while now.
- Remove the "update by version" from the warning.
- Adds the old default value for `[logging] log_filename_template` into the list - this
  old default breaks logging in Airflow 3.

Closes: apache#46972
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
This PR does a few things:

- cleans out old entries of `deprecated_values` - these have been
  emitting warnings in AF2 for a while now.
- Remove the "update by version" from the warning.
- Adds the old default value for `[logging] log_filename_template` into the list - this
  old default breaks logging in Airflow 3.

Closes: apache#46972
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle default values from Airflow 2 gracefully

4 participants