Explorar o código

Merge branch 'brainy/bugfix'

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
6b2b8b5b1c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      celery/task/base.py

+ 3 - 0
celery/task/base.py

@@ -40,6 +40,9 @@ _default_context = {"logfile": None,
 
 class Context(threading.local):
 
+    def __init__(self):
+        self.update(_default_context)
+
     def update(self, d, **kwargs):
         self.__dict__.update(d, **kwargs)