From b7219ba2fd524a67e2b5a43d18d2b6da49ee6a7f Mon Sep 17 00:00:00 2001 From: niphlod Date: Mon, 3 Oct 2016 21:09:27 +0200 Subject: [PATCH] fixes #1484, thanks @abastardi --- gluon/scheduler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gluon/scheduler.py b/gluon/scheduler.py index a68152b5..e758c379 100644 --- a/gluon/scheduler.py +++ b/gluon/scheduler.py @@ -477,7 +477,8 @@ def executor(queue, task, out): # 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