Martin
03/26/2025, 10:26 AMVampire
03/26/2025, 11:51 AMMartin
03/26/2025, 1:46 PMMartin
03/26/2025, 1:49 PMVampire
03/26/2025, 3:57 PMdependsOn
, mustRunAfter
, or shouldRunAfter
?
As those are the ways to influence the ordering, which depending on the actual semantics needed.Martin
03/26/2025, 3:58 PMMartin
03/26/2025, 3:58 PMMartin
03/26/2025, 4:03 PMA --> B
B --> E
B --> F
A --> C
C --> F
A --> D
And assume that the nodes have those weights (C is longuer than the otheres):
A(1)
B(1)
C(2)
D(1)
E(1)
And assume you have 2 workersMartin
03/26/2025, 4:04 PMMartin
03/26/2025, 4:04 PMMartin
03/26/2025, 4:04 PMMartin
03/26/2025, 4:07 PMMartin
03/26/2025, 4:08 PMMartin
03/26/2025, 4:12 PM1: run D & E
2: run F
3: run C & B
4: continue C
5: run A
vs
1: run E & F
2: run B & C
3: run D, continue C
4: run A
Martin
03/26/2025, 4:12 PMVampire
03/26/2025, 4:16 PMVampire
03/26/2025, 4:17 PMVampire
03/26/2025, 4:17 PMVampire
03/26/2025, 4:18 PMVampire
03/26/2025, 4:18 PMJulien Plissonneau Duquène
03/26/2025, 4:23 PMMartin
03/26/2025, 4:24 PMStep 2 in first case doesn't work as b depends on d. 2 would be only F and 3 B and C.Right!
Martin
03/26/2025, 4:24 PMMartin
03/26/2025, 4:25 PMMartin
03/26/2025, 4:26 PMJulien Plissonneau Duquène
03/26/2025, 4:28 PMVampire
03/26/2025, 5:11 PM.gradle
and consider it for the scheduling weight.Vampire
03/26/2025, 5:12 PMMartin
03/26/2025, 5:56 PMI think I have 16 cores or so, so parallelism is fine. But still the feature could make sense.I'm usually memory-bound more than CPU bound
I agree that Develocity should not really concerned.It could act as a distributed registry for average weight. Even if you have nothing on your machine, develocity has knowledge about past executions on other machines (although the hardware might introduce variance...)
If that is not done already and you open a feature request, please share the linkhttps://github.com/gradle/gradle/issues/32855
Vampire
03/26/2025, 10:17 PMIt could act as a distributed registry for average weight.
Sure, as an additional / alternative source 👍
Vampire
03/26/2025, 10:37 PMMartin
03/26/2025, 10:50 PM