Python 如何在Perfict中为控件流指定名称?
如何将Python 如何在Perfict中为控件流指定名称?,python,python-3.x,prefect,Python,Python 3.x,Prefect,如何将名称分配给流中的合并任务 thing_three = merge(thing_one, thing_two) 最终目标是使用flow.get\u任务(name=“thing\u merge”) 提前感谢。处理此问题最直接的方法是使用: thing_three = merge(thing_one, thing_two) thing_three.name = "thing_merger" 然后,当您调用flow.get\u tasks(name=“thing\u merge”)时,它将返
名称
分配给流中的合并
任务
thing_three = merge(thing_one, thing_two)
最终目标是使用flow.get\u任务(name=“thing\u merge”)
提前感谢。处理此问题最直接的方法是使用:
thing_three = merge(thing_one, thing_two)
thing_three.name = "thing_merger"
然后,当您调用flow.get\u tasks(name=“thing\u merge”)
时,它将返回:
[<Task: thing_merger>]
[]