0

我来自工作流自动化背景,正在寻找一些关于在 Python 中进行并行触发和忘记函数调用的建议。

想要实现这样的目标:

student_ids = query_database()
for each student_id:
   do_heavy_processing_for_student(student_id)

do_heavy_processing_for_student是一个函数,它接受一个student_id并进行一些非常繁重的处理。由于可能有 100 或 1000 名学生,因此不想在顺序模式下进行。

4

0 回答 0