Parcourir la source

Do not have to use buffer here. Closes #1438

Ask Solem il y a 11 ans
Parent
commit
5b963a1e2f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      celery/concurrency/processes.py

+ 1 - 1
celery/concurrency/processes.py

@@ -672,7 +672,7 @@ class TaskPool(BasePool):
             header = pack('>I', body_size)
             # index 1,0 is the job ID.
             job = get_job(tup[1][0])
-            job._payload = header, buffer(body), body_size
+            job._payload = header, body, body_size
             put_message(job)
         self._pool._quick_put = send_job