https://prefect.io logo
Title
d

Dennis Hinnenkamp

02/16/2022, 6:56 AM
Hi folks, I have created a file that contains a flow of flows and so far it works great! The only question I have is how can I name the individual flows so I can distinguish them in the UI.
a

Anna Geller

02/16/2022, 9:01 AM
You can add
task_args
with a name argument to all your Prefect tasks, e.g.
sales_forecast = create_flow_run(
        flow_name="sales_forecast",
        project_name=PROJECT_NAME,
        task_args={"name": "Sales Forecast"},
        upstream_tasks=[dbt_flow_run_view],
    )
🙌 1
d

Dennis Hinnenkamp

02/16/2022, 10:15 AM
Thanks @Anna Geller, that's exactly what I was looking for
👍 1