-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Airflow 2.2.3 : AirflowContextDeprecationWarning executing a DAG with PythonOperator that accesses the context #20603
Comments
I believe we know it already and we fixed it but I will let @uranusjr confirm when he is back. |
Related: #20213 |
Hmm #20213 should be part of 2.2.3. Are you sure you have 2.2.3 @gbonazzoli ? |
Yeah, this was the last item that was fixed for 2.2.3. Can you double-check the Airflow version please |
Yeah @gbonazzoli - maybe you have one of the RCs :) |
Confirmed. Just a presence of |
Thanks for confirming @gbonazzoli , we will fix it in 2.2.4 |
BTW. It's fixed in |
Specifically airflow/airflow/utils/context.py Lines 218 to 244 in 97261c6
Initially (including when 2.2.3 was implemented) the intention was to make this the expected behaviour and discourage |
Closing this as the fix is already cherry-pick for 2.2.4 👍 |
Still experiencing this in 2.2.5 |
@BernhardNiksch - please open a new issue and provide evidences - logs, details circumstances, etc. Adding a comment "I have the same issue" on a closed issue brings exactly 0 value in any attempt to diagnose and help the issue. Your problem might look similar but be a different issue. The only way to know it, is to look at the evidences. By not providing it, your not giving anyone a chance to try to diagnose your problem, because .... you have not provided any evidences. If you REALLY want to solve hte problem and, please help us to help you (even if you have the software for free and we are helping here in our free time). Being mindful of that and spending time on reporting your problem and providing evidences is the best way you can pay back to the community for the free software you get. |
Apache Airflow version
2.2.3 (latest released)
What happened
This strange behaviour started with Airflow 2.2.3, Airflow 2.2.2 was OK.
In every DAG that has a PythonOperator declared as:
we have the following WARNINGS in the log:
What you expected to happen
I think it is a bug.
How to reproduce
Run the code posted.
Operating System
Ubuntu 20.04.3 LTS
Versions of Apache Airflow Providers
Deployment
Virtualenv installation
Deployment details
Airflow all in one
Anything else
nope
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: