소스 검색

App: Be sure to pickle _preconf for Windows if the app is not configured when pickling. Closes #897

Ask Solem 10 년 전
부모
커밋
15134f4e24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/app/base.py

+ 1 - 1
celery/app/base.py

@@ -605,7 +605,7 @@ class Celery(object):
         when unpickling."""
         return {
             'main': self.main,
-            'changes': self._conf.changes if self._conf else {},
+            'changes': self._conf.changes if self._conf else self._preconf,
             'loader': self.loader_cls,
             'backend': self.backend_cls,
             'amqp': self.amqp_cls,