Merge pull request #1453 from niphlod/fix/1452

fixes #1452
This commit is contained in:
mdipierro
2016-09-21 09:52:46 -05:00
committed by GitHub
+2
View File
@@ -1499,6 +1499,8 @@ class Scheduler(MetaScheduler):
kwargs.update(start_time=start_time, next_run_time=next_run_time)
except:
pass
if 'start_time' in kwargs and 'next_run_time' not in kwargs:
kwargs.update(next_run_time=kwargs['start_time'])
rtn = self.db.scheduler_task.validate_and_insert(**kwargs)
if not rtn.errors:
rtn.uuid = tuuid