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):
4242
4343def _read_end_args (incoming_schedule_config ):
4444 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' :
4846 end_arg = _read_datetime (incoming_schedule_config , 'end_arg' )
4947 return end_option ,end_arg
5048 elif end_option == 'max_executions' :
@@ -116,8 +114,6 @@ def as_serializable_dict(self):
116114 elif self .end_option == 'max_executions' :
117115 result ['end_option' ] = self .end_option
118116 result ['end_arg' ] = self .end_arg
119- elif self .end_option == 'never' :
120- result ['end_option' ] = 'never'
121117
122118 if self .repeatable :
123119 result ['executions_count' ] = self .executions_count
You can’t perform that action at this time.
0 commit comments