瀏覽代碼

Task.bind should always set backend

Ask Solem 11 年之前
父節點
當前提交
b1d80b26ba
共有 1 個文件被更改,包括 1 次插入2 次删除
  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: