Browse Source

Pass args and kwargs to the context when called locally

Dmitry Malinovsky 10 năm trước cách đây
mục cha
commit
21bdfd5008
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/app/task.py

+ 1 - 1
celery/app/task.py

@@ -319,7 +319,7 @@ class Task(object):
 
     def __call__(self, *args, **kwargs):
         _task_stack.push(self)
-        self.push_request()
+        self.push_request(args=args, kwargs=kwargs)
         try:
             # add self if this is a bound task
             if self.__self__ is not None: