Explorar o código

Make request.headers available for task.apply. Closes #1874

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
2e63e42646
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      celery/app/task.py

+ 1 - 0
celery/app/task.py

@@ -710,6 +710,7 @@ class Task(object):
                    'loglevel': options.get('loglevel', 0),
                    'callbacks': maybe_list(link),
                    'errbacks': maybe_list(link_error),
+                   'headers': options.get('headers'),
                    'delivery_info': {'is_eager': True}}
         if self.accept_magic_kwargs:
             default_kwargs = {'task_name': task.name,