Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在Perfict中为控件流指定名称?_Python_Python 3.x_Prefect - Fatal编程技术网

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>]
[]