dheerajturaga opened a new pull request, #72822: URL: https://github.com/apache/airflow/pull/72822
Valid Dags can contain independent task dependencies that cross between sibling TaskGroups in both directions. The current sibling-level projection treats those edges as a TaskGroup cycle even when the task graph itself is acyclic. This causes serialized Grid and Graph endpoints to return 500 responses. This change falls back to strongly connected component ordering when the sibling projection is cyclic. It preserves child insertion order within each component, keeps dependencies between components topologically ordered, and continues to reject genuine task-level cycles. The behavior is shared by the Task SDK and serialized TaskGroup implementations. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex (GPT-5) Generated-by: Codex (GPT-5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- Drafted-by: Codex (GPT-5); reviewed by @dheerajturaga before posting -- 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]
