소스 검색

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: