فهرست منبع

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."""