dabla commented on issue #75399:
URL: https://github.com/apache/airflow/issues/75399#issuecomment-7034498755

   Agree with @kaxil. To add the piece the thread doesn't name: since #55068 
(with #64298 and #64715) the triggerer already renders a `start_from_trigger` 
task's fields itself. It builds the template context from the serialized Dag 
that the supervisor passes in the `RunTrigger` workload, so no Dag file is 
loaded 
([context](https://github.com/apache/airflow/blob/0529b448139a26806723226bd592ecaa99efb4b3/airflow-core/src/airflow/jobs/triggerer_job_runner.py#L1715-L1717),
 
[render](https://github.com/apache/airflow/blob/0529b448139a26806723226bd592ecaa99efb4b3/airflow-core/src/airflow/jobs/triggerer_job_runner.py#L1979-L1981)).
 `BaseTrigger` narrows `template_fields` to the operator fields that are also 
`trigger_kwargs` keys 
([base.py](https://github.com/apache/airflow/blob/0529b448139a26806723226bd592ecaa99efb4b3/airflow-core/src/airflow/triggers/base.py#L117-L150)).
 Those values just never reach the rendered-fields table. So recording them 
right after `render_template_fields`, which is 
 the direction #75423 takes (review comments there), fixes this case without 
loading anything new.
   
   What stays empty after that: operator fields not passed to the trigger, as 
long as the task never reaches a worker. It would help to say so in the docs 
for `start_from_trigger`, so the partial tab isn't reported as a new bug.
   


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