from multiprocessing import Pool
def make_report(data_info):
task_id = data_info[0]
date_str = data_info[1]
print(task_id, date_str)
# do something
if __name__ == '__main__':
tl = ['123', '234', '345']
dl = ['20240101', '20240202']
args_list = []
for t in tl:
for date_str in dl:
tmp_arg = (t, date_str)
args_list.append(tmp_arg)
if args_list:
with Pool(10) as p:
p.map(make_report, args_list)