From 790593228f94f39acbff19cd47b1d7324c27c869 Mon Sep 17 00:00:00 2001 From: niphlod Date: Mon, 19 Sep 2016 20:41:41 +0200 Subject: [PATCH] fixes #1452 --- gluon/scheduler.py | 2 ++ 1 file changed, 2 insertions(+) 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