Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hicay committed Jan 14, 2020
1 parent d056305 commit 2919b37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion celery/backends/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ def encode(self, data):
def decode(self, data):
if self.serializer == 'bson':
return data
return super(MongoBackend, self).decode(data)

payload = self.encode(data)
return super(MongoBackend, self).decode(payload)

def _store_result(self, task_id, result, state,
traceback=None, request=None, **kwargs):
Expand Down

0 comments on commit 2919b37

Please sign in to comment.