Commits

Brodie Rao committed 8512259

Only check ALASTOR_CELERY once

Comments (0)

Files changed (1)

alastor/__init__.py

             gprof2dot = getattr(settings, 'ALASTOR_GPROF2DOT', 'gprof2dot')
             method, path, data, headers = distill(request)
 
-            if getattr(settings, 'ALASTOR_CELERY', False):
+            if profiletask:
                 result = profiletask.delay(method, path, data, headers,
                                            gprof2dot)
                 output = result.get() # XXX