Procházet zdrojové kódy

Use Message.decode() as available in carrot >= 0.4.0

Ask Solem před 16 roky
rodič
revize
8ad9c8f39b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      celery/worker.py

+ 1 - 1
celery/worker.py

@@ -114,7 +114,7 @@ class TaskWrapper(object):
         :returns: :class:`TaskWrapper` instance.
 
         """
-        message_data = simplejson.loads(message.body)
+        message_data = message.decode()
         task_name = message_data["task"]
         task_id = message_data["id"]
         args = message_data["args"]