VishakBaddur commented on code in PR #73380:
URL: https://github.com/apache/airflow/pull/73380#discussion_r4699085189


##########
task-sdk/src/airflow/sdk/execution_time/callback_supervisor.py:
##########
@@ -57,12 +57,12 @@
     _ensure_client,
     _import_task_runner_before_fork,
     _make_process_nondumpable,
+    _task_process_uses_exec,

Review Comment:
   Ran this on macOS (arm64, Python 3.12.12), where `_task_process_uses_exec()` 
is true by default, so callbacks take the new fresh-interpreter path without 
setting the option:
   
   - On the branch, `test_callback_supervisor.py` passes (46), including 
`test_callback_fresh_interpreter_end_to_end`.
   - Merged with current main, this module no longer imports: `ImportError: 
cannot import name '_task_process_uses_exec' from 
'airflow.sdk.execution_time.supervisor'`. #75184 renamed it to the public 
`task_process_uses_exec` (now also used by `coordinators/_xcom_backend.py`), so 
`callback_supervisor` fails to import and no callback can run. The same test 
file on main alone passes (44).
   - With only this import changed to `task_process_uses_exec as 
_task_process_uses_exec`, all 46 pass on the merge, with the tests unchanged.
   
   CI tests the PR merged with main, so it would hit this once the workflow 
runs. I haven't run this on Linux, with `execute_tasks_new_python_interpreter` 
set, or in a real Airflow process.



-- 
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]

Reply via email to