您如何分配 name
到 merge
流程中的任务?
thing_three = merge(thing_one, thing_two)
最终目标是检索
merge
使用 flow.get_tasks(name="thing_merger")
提前致谢。
最佳答案
处理此问题的最直接方法是使用:
thing_three = merge(thing_one, thing_two)
thing_three.name = "thing_merger"
那么当你调用
flow.get_tasks(name="thing_merger")
,它会返回:[<Task: thing_merger>]
关于python - 如何在完美中为 control_flow 分配名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62464709/