File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,6 @@ def _read_repeat_period(incoming_schedule_config):
31
31
return period
32
32
33
33
34
- def _read_executions_count (incoming_schedule_config ):
35
- executions_count = model_helper .read_int_from_config ('executions_count' , incoming_schedule_config )
36
- if executions_count is None :
37
- executions_count = 0
38
- elif executions_count < 0 :
39
- raise InvalidScheduleException ('executions_count should be > 0' )
40
- return executions_count
41
-
42
34
def _read_end_arg_int (incoming_schedule_config ):
43
35
end_arg = model_helper .read_int_from_config ('end_arg' , incoming_schedule_config )
44
36
if end_arg is None :
@@ -87,7 +79,7 @@ def read_schedule_config(incoming_schedule_config):
87
79
prepared_schedule_config = ScheduleConfig (repeatable , start_datetime )
88
80
if repeatable :
89
81
90
- prepared_schedule_config .executions_count = _read_executions_count ( incoming_schedule_config )
82
+ prepared_schedule_config .executions_count = model_helper . read_int_from_config ( 'executions_count' , incoming_schedule_config , default = 0 )
91
83
92
84
prepared_schedule_config .end_option , prepared_schedule_config .end_arg = _read_end_args (incoming_schedule_config )
93
85
You can’t perform that action at this time.
0 commit comments