I am trying to run a function in parallel for multiple files and want all of them to terminate before a point.
For Example: There is a loop
def main():
for item in list:
function_x(item)
function_y(list)
Now what I want is that this function_x
should run in parallel for all items. But this function should be executed for all items before my function_y
is called.
I am planning to use celery for this. but can not understand how to do this.