Add first-class Gang scheduling - #10
Open
dejanzele wants to merge 1 commit into
Open
Conversation
dejanzele
force-pushed
the
gang-scheduling
branch
6 times, most recently
from
July 14, 2026 15:58
48747f3 to
7cdcd07
Compare
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
dejanzele
force-pushed
the
gang-scheduling
branch
from
July 15, 2026 15:26
7cdcd07 to
292e530
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
armada_flyte.Gang, a first-class way to declare that a set of Flyte tasks must be scheduled all-or-nothing on Armada.You add members with
Gang.add(task, ...)(orGang.map(task, items, ...)for the common homogeneous case) andawait gang.run(). The gang id and the cardinality are derived from the members added, so they can never drift from the fan-out the way a hand-set value could.Gang.run()submits every member together, and Armada places all of them or none.Under the hood the count is only known at the driver's fan-out, and Flyte hands the connector one task at a time with no group size in its metadata. So
Gangcarries the gang id, cardinality, and uniformity label to the connector through per-member container environment variables under anARMADAFLYTE_GANG_prefix. The connector translates those into Armada's gang annotations and strips them from the submitted pod, so Armada's ownARMADA_GANG_*runtime injection stays authoritative for the application.Gang.addrejects a non-Armada task, since such a member would run as an ordinary pod and deadlock the rest of the gang.This is a breaking change to
ArmadaConfig, so the package version moves from 0.1.0 to 0.2.0.Removed from
ArmadaConfig:gang_idgang_cardinalitygang_node_uniformity_labelExpress gangs with
Ganginstead. Passing one of these as a keyword now raisesTypeError.This branch is independent and can merge in any order relative to the others.