Skip to content

Commit

Permalink
Merge pull request web2py#1486 from niphlod/fix/1484
Browse files Browse the repository at this point in the history
fixes web2py#1484, thanks @abastardi
  • Loading branch information
mdipierro authored Oct 3, 2016
2 parents 99c3e06 + b7219ba commit 4f68c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gluon/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ def write(self, data):
# Get controller-specific subdirectory if task.app is of
# form 'app/controller'
(a, c, f) = parse_path_info(task.app)
_env = env(a=a, c=c, import_models=True)
_env = env(a=a, c=c, import_models=True,
extra_request={'is_scheduler': True})
logging.getLogger().setLevel(level)
f = task.function
functions = current._scheduler.tasks
Expand Down

0 comments on commit 4f68c41

Please sign in to comment.