airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Re-add feature to use `use_airflow_context` in venv operators

Open amoghrajesh opened this issue 1 year ago • 7 comments

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.

amoghrajesh avatar Feb 03 '25 06:02 amoghrajesh

cc @phi-friday

amoghrajesh avatar Feb 03 '25 06:02 amoghrajesh

Greetings @amoghrajesh , is there an work-around we can use meanwhile ?

pedro-cf avatar Apr 15 '25 12:04 pedro-cf

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.

phi-friday avatar Apr 15 '25 12:04 phi-friday

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.

amoghrajesh avatar Mar 25 '26 07:03 amoghrajesh

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.

aruadecarvalho avatar Oct 19 '26 13:10 aruadecarvalho

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.

safaeelm1-rgb avatar Oct 21 '26 08:10 safaeelm1-rgb

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?

leslyvj avatar Nov 20 '26 05:11 leslyvj