In Celery Task Queue, is running tasks in a group any different than multiple asyncs in a loop?
问题 Let's say I have a very simple task like this: @celery.task(ignore_result=True) def print_page(page): with open('path/to/page','w') as f: f.write(page) (Please ignore the potential race condition in the above code... this is a simplified example) My question is whether the following two code samples would produce identical results, or if one is better than the other: Choice A: @celery.task(ignore_result=True) def print_pages(page_generator): for page in page_generator: print_page.s(page)