You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "YAshhh29 (via GitHub)" <gi...@apache.org> on 2026/10/09 21:21:32 UTC

[PR] Fix upstream failure branch in task lifecycle diagram [airflow]

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

   Replaces #71101, which was closed under the open-PR limit and can't be reopened from my side. Same one-commit change, rebased onto main.
   
   In the task lifecycle diagram, the two branches after "Required upstream task(s) failed?" are reversed. `YES` currently continues through the normal scheduling checks and `NO` leads to `upstream_failed`. It should be the other way around: when a required upstream task has failed the task moves to `upstream_failed`, otherwise the scheduler keeps evaluating it.
   
   This swaps the two labels and updates the PNG and the source checksum. The checksum was recomputed after the rebase, since #74152 changed the script's metadata.
   
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes. I used an AI coding assistant (GitHub Copilot, Claude Code) for parts of the change and for the rebase. I reviewed everything before pushing and I'm responsible for it.
   
   Generated-by: Claude Code 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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix upstream failure branch in task lifecycle diagram [airflow]

Posted by "YAshhh29 (via GitHub)" <gi...@apache.org>.
YAshhh29 commented on PR #74520:
URL: https://github.com/apache/airflow/pull/74520#issuecomment-6385224616

   Checked against a real Dag run: the task whose upstream failed ends in `upstream_failed` and is never queued, and the one whose upstream succeeded is scheduled and runs. That matches [`trigger_rule_dep.py`](https://github.com/apache/airflow/blob/a5af91d2c52fb410a58eb6939ab83e44612afdfe/airflow-core/src/airflow/ti_deps/deps/trigger_rule_dep.py#L479-L481), so YES should lead to `upstream_failed`. (Windows can't run task bodies in-process, so the worker step was stubbed; the scheduling is Airflow's own code.)
   <img width="1667" height="292" alt="download" src="https://github.com/user-attachments/assets/a86325ce-8461-428c-97c6-5e60c73c0594" />
   
   The workflows for the latest push are waiting for approval, if a maintainer could approve them.
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix upstream failure branch in task lifecycle diagram [airflow]

Posted by "YAshhh29 (via GitHub)" <gi...@apache.org>.
YAshhh29 commented on PR #74520:
URL: https://github.com/apache/airflow/pull/74520#issuecomment-6089514799

   Reopening this now that I'm under the open-PR limit. Rebased onto main and regenerated the checksum after the script metadata change in #74152. It's a two-line fix to the YES/NO labels on the upstream-failure branch of the diagram, so it should be quick to review whenever someone has a moment.
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org