diff --git a/gluon/scheduler.py b/gluon/scheduler.py index 11dccd168..a68152b58 100644 --- a/gluon/scheduler.py +++ b/gluon/scheduler.py @@ -1499,6 +1499,8 @@ def queue_task(self, function, pargs=[], pvars={}, **kwargs): 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