File tree 1 file changed +5
-2
lines changed
openbas-api/src/main/java/io/openbas/scheduler/jobs 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 46
46
@ DisallowConcurrentExecution
47
47
@ RequiredArgsConstructor
48
48
public class InjectsExecutionJob implements Job {
49
+
50
+ public static final String DEFAULT_EXECUTION_THRESHOLD_TIME_IN_MINUTS = "10" ;
51
+ private static final long delayForSimulationCompletedEvent = 3600L ;
52
+
49
53
private final Environment env ;
50
54
private int injectExecutionThreshold ;
51
55
private static final Logger LOGGER = Logger .getLogger (InjectsExecutionJob .class .getName ());
52
- private static final long delayForSimulationCompletedEvent = 3600L ;
53
56
54
57
private final InjectHelper injectHelper ;
55
58
private final ExerciseRepository exerciseRepository ;
@@ -76,7 +79,7 @@ public class InjectsExecutionJob implements Job {
76
79
private void init () {
77
80
String threshold = env .getProperty ("inject.execution.threshold.minutes" );
78
81
if (threshold == null || threshold .isBlank ()) {
79
- threshold = "10" ;
82
+ threshold = DEFAULT_EXECUTION_THRESHOLD_TIME_IN_MINUTS ;
80
83
}
81
84
this .injectExecutionThreshold = Integer .parseInt (threshold );
82
85
}
You can’t perform that action at this time.
0 commit comments