| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | '''http://emmanuel-klinger.net/distributed-task-queues-for-machine-learning-in-python-celery-rabbitmq-redis.html''' |
||
| 28 | def callback(chan, method, properties, body): |
||
| 29 | global k |
||
| 30 | chan.basic_ack(delivery_tag=method.delivery_tag) |
||
| 31 | if k == N-1: |
||
| 32 | end = time.time() |
||
| 33 | print("rabbit", SEND_FINISH - START, end - START) |
||
| 34 | k += 1 |
||
| 35 | |||
| 39 |