소스 검색

MongoDB backend: `_store_result` now returns the `result` (instead of
None)

The return statement was missing in `_store_result` which leaded into
other problems e.g. with displaying tracebacks.

Jonas Haag 15 년 전
부모
커밋
22341a44d1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      celery/backends/mongodb.py

+ 2 - 0
celery/backends/mongodb.py

@@ -109,6 +109,8 @@ class MongoBackend(BaseDictBackend):
         taskmeta_collection = db[self.mongodb_taskmeta_collection]
         taskmeta_collection.save(meta, safe=True)
 
+        return result
+
     def _get_task_meta_for(self, task_id):
         """Get task metadata for a task by id."""