Browse Source

delay_task now returns string id, not UUID object.

Ask Solem 16 years ago
parent
commit
da7a3f4ee0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      celery/messaging.py

+ 2 - 2
celery/messaging.py

@@ -14,10 +14,10 @@ class TaskPublisher(Publisher):
     routing_key = "celery"
 
     def delay_task(self, task_name, **kwargs):
-        task_id = uuid.uuid4()
+        task_id = str(uuid.uuid4())
         message_data = dict(kwargs)
         message_data["celeryTASK"] = task_name
-        message_data["celeryID"] = str(task_id)
+        message_data["celeryID"] = task_id
         self.send(message_data)
         return task_id