dasarijashwanth commented on issue #41093: URL: https://github.com/apache/airflow/issues/41093#issuecomment-7211594325
Hi, I'd like to work on this. Looking at the current code, the exec decision is made in the task supervisor (`task_process_uses_exec()` in `task-sdk/src/airflow/sdk/execution_time/supervisor.py`), which today only reads the global `[core] execute_tasks_new_python_interpreter` config. My proposed approach: 1. Add an `execute_tasks_new_python_interpreter: bool | None = None` argument to `PythonOperator` (None = fall back to the global config). 2. Carry the value to the supervisor alongside the other per-task execution context (similar to how retry-related context is passed), so `task_process_uses_exec()` can prefer the per-task value when set. 3. Keep the platform gate (macOS) forcing exec regardless. Before I write code, could a maintainer confirm whether the per-task value should travel via the TI context from the API server, or whether there's a preferred existing channel for per-task execution flags? Happy to adjust the design. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
