Jelajahi Sumber

Pass args and kwargs to the context when called locally

Dmitry Malinovsky 10 tahun lalu
induk
melakukan
21bdfd5008
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: