From cbddfb5cdfcf824f72ba6182c1f054a4929ed822 Mon Sep 17 00:00:00 2001 From: niphlod Date: Sat, 24 Aug 2013 14:05:08 +0200 Subject: [PATCH] fix issue with scheduler namespace. Thanks @limedrop for spotting this. --- gluon/scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/scheduler.py b/gluon/scheduler.py index 0fa207e3..70c666db 100644 --- a/gluon/scheduler.py +++ b/gluon/scheduler.py @@ -238,10 +238,10 @@ def executor(queue, task, out): result = eval(task.function)( *loads(task.args, object_hook=_decode_dict), **loads(task.vars, object_hook=_decode_dict)) - queue.put(TaskReport(COMPLETED, result=result)) + queue.put(TaskReport('COMPLETED', result=result)) except BaseException, e: tb = traceback.format_exc() - queue.put(TaskReport(FAILED, tb=tb)) + queue.put(TaskReport('FAILED', tb=tb)) del stdout