-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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-3795] provide_context param is now used #4735
[AIRFLOW-3795] provide_context param is now used #4735
Conversation
Anyone can help me with these fails? Don't know tests not related with my change are failing. |
@ssoto The error is on the function that you wrote
|
This built failed only on python3.5 Docker Sqlite environment. Test that fails is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've restarted the failing job to check if the error is still there.
Codecov Report
@@ Coverage Diff @@
## master #4735 +/- ##
==========================================
+ Coverage 74.49% 75.26% +0.77%
==========================================
Files 430 450 +20
Lines 28003 30400 +2397
==========================================
+ Hits 20861 22881 +2020
- Misses 7142 7519 +377
Continue to review full report at Codecov.
|
Thanks @ssoto |
Thanks for merge @Fokko , How can I know which version of apache-airflow will have this fix? |
@ssoto I've marked it for inclusion in 1.10.3 which I'm hopeful will be out by the end of next week. But I can't promise that timeline. |
@ssoto That said: provide context might have a few quirks/edge cases for the venv operator: https://issues.apache.org/jira/browse/AIRFLOW-2738 |
* provide_context param is now used * Fixed new PythonVirtualenvOperator test
* provide_context param is now used * Fixed new PythonVirtualenvOperator test
* provide_context param is now used * Fixed new PythonVirtualenvOperator test
Make sure you have checked all steps below.
Jira
Description
For a
PythonOperator
, I can setprovide_context=True
. For aPythonVirtualenvOperator
, I am not able to setprovide_context=True
, andprovide_context=False
gets passed to the super function. I do not see why this is hardcoded, and I would like to be able to use the context with aPythonVirtualenvOperator
.See:
airflow/airflow/operators/python_operator.py
Line 242 in 83cb9c3
Tests
Commits
Documentation
Code Quality
flake8