Repository navigation
Conversation
ec28e20 to
3491318
Compare
|
Thanks for working on this. In the new test case: extract >> staging >> spark_job >> mart >> publishthe real task path is: But the expected root-level order is: That puts This seems potentially confusing for users because the UI may suggest that downstream work outside the cycle can happen before a task it actually depends on. More generally, since a collapsed TaskGroup can only appear once, a path like Is this tradeoff intentional? |
|
Closing this. #73724 is already open for #73678, from the maintainer who filed the issue and said they would handle it, five days before this one. This PR also encodes an order that contradicts the Dag: the new test builds |
Since 3.3.1 (#69933), Grid and Graph return HTTP 500 when TaskGroups wait on each other as
units, even though the task graph is acyclic. A path that leaves a group and re-enters it
(
g.a >> ext >> g.b) is enough, andpartial_subsetfiltering can create the same shape(reported in the #73678 discussion), so the UI sort must tolerate it.
Changes:
and continues. The sweep path falls back to pass numbering instead of raising.
Relation to #73724: both address the same bug with different approaches. That PR collapses
each SCC into one unit, which keeps the members of a cycle together. This PR breaks the cycle at
a single child inside the existing pass-numbering loop, which keeps the remaining dependencies in
order (for a ring of three groups, one dependency ends up out of order instead of two).
Benchmark and randomized check
Root-level
topological_sort, best of 3:g.a >> bridge >> g.bcycles3,000 random Dags: groups without a group-level cycle (11,504) sort identically to main;
in groups with one (2,061), out-of-order dependencies total 3,882 vs 4,618.
related: #73678
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines