Parcourir la source

Merge branch 'brainy/bugfix'

Ask Solem il y a 14 ans
Parent
commit
6b2b8b5b1c
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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)