From 5047e4a25a0814f96852882f02c4017e1d5f81e7 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Thu, 12 Sep 2024 15:32:47 +0200 Subject: Added max number of failures (#254) * Added a max failure for tasks. If tasks fail more times, they get cancelled * Added maxNumFailures to the frontend * Updated tests --- .../src/test/kotlin/org/opendc/compute/service/ComputeServiceTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opendc-compute/opendc-compute-service/src/test') diff --git a/opendc-compute/opendc-compute-service/src/test/kotlin/org/opendc/compute/service/ComputeServiceTest.kt b/opendc-compute/opendc-compute-service/src/test/kotlin/org/opendc/compute/service/ComputeServiceTest.kt index e48244f0..fa5b775e 100644 --- a/opendc-compute/opendc-compute-service/src/test/kotlin/org/opendc/compute/service/ComputeServiceTest.kt +++ b/opendc-compute/opendc-compute-service/src/test/kotlin/org/opendc/compute/service/ComputeServiceTest.kt @@ -68,7 +68,7 @@ internal class ComputeServiceTest { filters = listOf(ComputeFilter(), VCpuFilter(allocationRatio = 1.0), RamFilter(allocationRatio = 1.0)), weighers = listOf(RamWeigher()), ) - service = ComputeService(scope.dispatcher, computeScheduler, Duration.ofMinutes(5)) + service = ComputeService(scope.dispatcher, computeScheduler, Duration.ofMinutes(5), 10) } @Test -- cgit v1.2.3