File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ def _read_end_arg_int(incoming_schedule_config):
42
42
43
43
def _read_end_args (incoming_schedule_config ):
44
44
end_option = incoming_schedule_config .get ('end_option' )
45
- if end_option is None :
46
- raise InvalidScheduleException ('end_option is required for repeatable schedule' )
47
- elif end_option == 'end_datetime' :
45
+ if end_option == 'end_datetime' :
48
46
end_arg = _read_datetime (incoming_schedule_config , 'end_arg' )
49
47
return end_option ,end_arg
50
48
elif end_option == 'max_executions' :
@@ -116,8 +114,6 @@ def as_serializable_dict(self):
116
114
elif self .end_option == 'max_executions' :
117
115
result ['end_option' ] = self .end_option
118
116
result ['end_arg' ] = self .end_arg
119
- elif self .end_option == 'never' :
120
- result ['end_option' ] = 'never'
121
117
122
118
if self .repeatable :
123
119
result ['executions_count' ] = self .executions_count
You can’t perform that action at this time.
0 commit comments