Browse Source

bind() on Task instance was being called twice

Akshar Raaj 11 năm trước cách đây
mục cha
commit
7282b21209
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      celery/app/base.py

+ 0 - 1
celery/app/base.py

@@ -224,7 +224,6 @@ class Celery(object):
             '__doc__': fun.__doc__,
             '__module__': fun.__module__}, **options))()
         task = self._tasks[T.name]  # return global instance.
-        task.bind(self)
         return task
 
     def finalize(self):