I have a large loop to produce tasks:
for i in range(1000):
receiver.apply_async(args=(i), kwargs={}, exchange=topic_exchange, routing_key=topic_key)
And I found there is a module celery.contrib.batches before celery 3.X or celery_batches after celery 4.X. But this module doesn't seem to support such params. So how can I do it?
I'm using celery 4.4.7 with rabbitmq.