Skip to content

Commit

Permalink
Merge pull request web2py#1453 from niphlod/fix/1452
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro authored Sep 21, 2016
2 parents 0225b68 + 7905932 commit ae88d2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gluon/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae88d2f

Please sign in to comment.