diff --git a/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java b/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java index 71b2708..f52ec57 100644 --- a/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java +++ b/Backend/src/main/java/unical/demacs/rdm/utils/Scheduler.java @@ -374,7 +374,7 @@ private SolverConfig createSolverConfig() { .withConstraintProviderClass(ScheduleConstraintProvider.class) .withTerminationConfig(new TerminationConfig() .withBestScoreLimit("0hard/*soft") - .withSecondsSpentLimit(120L)) + .withSecondsSpentLimit(SECONDS_SPENT_LIMIT)) .withPhases( new ConstructionHeuristicPhaseConfig() .withConstructionHeuristicType(ConstructionHeuristicType.FIRST_FIT_DECREASING),