Switch to unified view
a/Allura/allura/controllers/task.py | b/Allura/allura/controllers/task.py | ||
---|---|---|---|
... |
... |
||
6 | when executing celery tasks. |
6 | when executing celery tasks. |
7 | ''' |
7 | ''' |
8 | 8 | ||
9 | def __call__(self, environ, start_response): |
9 | def __call__(self, environ, start_response): |
10 | task = environ['task'] |
10 | task = environ['task'] |
11 | result = task() |
11 | result = task(restore_context=False) |
12 | start_response('200 OK', []) |
12 | start_response('200 OK', []) |
13 | return [ result ] |
13 | return [ result ] |