shivaam opened a new pull request, #75428:
URL: https://github.com/apache/airflow/pull/75428

   The task lifecycle diagram on the Tasks docs page has two mistakes on the 
deferral path:
   
   - Tasks with `start_from_trigger=True` are drawn going through `scheduled`, 
the executor and `queued` before they reach the triggerer. The scheduler defers 
these tasks itself: `DagRun.schedule_tis` calls `TaskInstance.defer_task`, 
which creates the trigger and moves the task instance straight to `deferred`, 
so it never reaches `scheduled` or `queued`. The "A triggerer task?" check now 
comes just before `scheduled`, and `queued` leads straight to the worker.
   - When a trigger fires and the task still has to finish on a worker, the 
diagram sent it back through all of the scheduler's checks, so a 
`start_from_trigger` task was drawn looping back to the triggerer. 
`handle_event_submit` sets the task instance to `scheduled` directly, so that 
arrow now points at `scheduled`.
   
   Only the diagram changes. The image and its checksum were regenerated with 
the `generate-airflow-diagrams` hook.
   
   The swapped YES/NO labels on "Required upstream task(s) failed?" are fixed 
separately in #74520. The two changes touch different lines of the script, so 
whichever merges second only needs the image regenerated.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


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