Browse Source

Task decorator should not be lazy if app already finalized. Closes #1571

Ask Solem 11 years ago
parent
commit
19e163ff6e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/app/base.py

+ 1 - 1
celery/app/base.py

@@ -198,7 +198,7 @@ class Celery(object):
                         task = filter(task)
                         task = filter(task)
                     return task
                     return task
 
 
-                if opts.get('_force_evaluate'):
+                if self.finalized or opts.get('_force_evaluate'):
                     ret = self._task_from_fun(fun, **opts)
                     ret = self._task_from_fun(fun, **opts)
                 else:
                 else:
                     # return a proxy object that evaluates on first use
                     # return a proxy object that evaluates on first use