Browse Source

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 years ago
parent
commit
22341a44d1
1 changed files with 2 additions and 0 deletions
  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."""