[英]How to assign a name to a control_flow in prefect?
如何為流中的merge
任務分配name
?
thing_three = merge(thing_one, thing_two)
最終目標是使用flow.get_tasks(name="thing_merger")
檢索merge
提前致謝。
處理此問題的最直接方法是使用:
thing_three = merge(thing_one, thing_two)
thing_three.name = "thing_merger"
然后當你調用flow.get_tasks(name="thing_merger")
時,它會返回:
[<Task: thing_merger>]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.