Slackbot
03/10/2022, 12:56 AMJohn Bellini
03/10/2022, 1:12 AMJohn Bellini
03/10/2022, 1:14 AMtomas-mrkvicka
03/10/2022, 1:23 AMmaxParallelUsages.set(Provider<>) with a Property<> actually doesn't work as I expected. Even though the Property<> changes its value via build script, the service always uses its initial value.Thomas Broyer
03/10/2022, 8:17 AMVampire
03/10/2022, 9:44 AMtomas-mrkvicka
03/10/2022, 10:09 AMProvider<> type for the property? Provider type indicates lazy evaluation to me.
It looks like that @Thomas Broyer hit the nail on the head.
Thank you.
So my only way to overcome this would be some sort of a configuration task which will be executed prior to the test task itself and which will set up the service in its action section.Vampire
03/10/2022, 10:11 AMtomas-mrkvicka
03/10/2022, 10:15 AMJust executing this configure action eagerly just means the association between the two properties is eagerly done, not that the value is eagerly calculated.Yop, that is correct. But during the execution phase,
maxParallelUsages has the initial value of the maxParallel property. So it doesn't evaluate lazily as I would expect.Thomas Broyer
03/10/2022, 10:27 AMVampire
03/10/2022, 10:48 AMVampire
03/10/2022, 10:48 AM