Re-add feature to use `use_airflow_context` in venv operators
Body
The PR https://github.com/apache/airflow/pull/46306 reverts the feature https://github.com/apache/airflow/pull/41363. Reasoning: https://github.com/apache/airflow/pull/46306#issuecomment-2626847574
We should consider re-adding it at a later point.
Committer
- [x] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
cc @phi-friday
Greetings @amoghrajesh , is there an work-around we can use meanwhile ?
At the time, I didn't know the timeline for Airflow 3.0. But now it looks like 3.0 is on the horizon, and I'm sure we'll see a lot of changes. After 3.0 is released, and I've gotten a bit more comfortable with 3.0, I might try to add the use_airflow_context feature again. (However, my current job is a bit far removed from Airflow, so it will take some time...) Of course, it would be great if someone besides me added the feature.
Since this has not yet been picked up and we are approaching the 3.2 release, I am moving it to the 3.3 milestone.
Hi @amoghrajesh ! Is anyone still working on this? I noticed #70099 was closed, and I’d be interested in picking it up if it’s available.
Hi @amoghrajesh , I'd be interested in contributing to this issue as a first contribution to Apache Airflow. I noticed that PR #70099 was closed without being merged. Is this feature still wanted, and would a new implementation be welcome? I'd be happy to investigate the previous approach and work on the remaining issues.
Hi @amoghrajesh, is this still wanted for Airflow 3? I'd like to pick it up — #70099 was closed by its author without review. I'd base it on airflow.sdk.get_current_context() in the subprocess, and clean up the unused airflow_context.json argument and the TODO test exclusion. Any preferred approach?