The GitHub Actions job "Tests" on airflow.git/add-callback-source-to-context 
has failed.
Run started by GitHub user vasanthrpjan1-boop (triggered by potiuk).

Head commit for run:
26b49f70ebf89d367ec18273c10e030c5bace0f5 / vasanthrpjan1-boop 
<[email protected]>
Add callback_source to context to differentiate DAG vs task callbacks

Currently a callback defined at the DAG level receives a context that
is nearly identical to a task-level callback context, making it
impossible to tell which level triggered the call.

This adds a `CallbackSource` enum ("dag" / "task") and injects it as
`context["callback_source"]` in every code path that invokes callbacks:

- task_runner._run_task_state_change_callbacks  (in-worker task path)
- processor._execute_dag_callbacks              (DAG processor path)
- processor._execute_task_callbacks             (DAG processor path)
- DagRun.handle_dag_callback                    (dag.test() path)

Closes: #61119
Co-authored-by: Cursor <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/22992259748

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to