Merge pull request #1486 from niphlod/fix/1484

fixes #1484, thanks @abastardi
This commit is contained in:
mdipierro
2016-10-03 14:48:53 -05:00
committed by GitHub
+2 -1
View File
@@ -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