Browse Source

Task.bind should always set backend

Ask Solem 11 years ago
parent
commit
b1d80b26ba
1 changed files with 1 additions and 2 deletions
  1. 1 2
      celery/app/task.py

+ 1 - 2
celery/app/task.py

@@ -272,8 +272,7 @@ class Task(object):
                 setattr(self, attr_name, conf[config_name])
         if self.accept_magic_kwargs is None:
             self.accept_magic_kwargs = app.accept_magic_kwargs
-        if self.backend is None:
-            self.backend = app.backend
+        self.backend = app.backend
 
         # decorate with annotations from config.
         if not was_bound: