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

Replace execution_date in templates #50

Closed
augusto-herrmann opened this issue Dec 22, 2021 · 0 comments · Fixed by #93
Closed

Replace execution_date in templates #50

augusto-herrmann opened this issue Dec 22, 2021 · 0 comments · Fixed by #93

Comments

@augusto-herrmann
Copy link
Member

Using execution_date inside templates is deprecated in Airflow 2.2.1 and will be removed in a future version. We need to replace it with an alternative.

Currently it throws a warning:

{warnings.py:109} WARNING - /home/***/.local/lib/python3.9/site-packages/***/models/taskinstance.py:1941: DeprecationWarning: Accessing 'execution_date' from the template is deprecated and will be removed in a future version. Please use 'logical_date' or 'data_interval_start' instead.
  warnings.warn(message, DeprecationWarning)
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 a pull request may close this issue.

1 participant