https://prefect.io logo
s

Sahil Rangwala

08/22/2023, 1:32 PM
Here is where you can find to customize the naming of the flow run, the name of the flow is pulled from the function name if its not provided
1
🙌 3
j

Jeff Hale

08/22/2023, 7:01 PM
Adding a little example from the release notes when this was introduced:
Copy code
import pendulum
from prefect import task, flow

@task(task_run_name="{greeting}-{name}")
def my_task(name, greeting="hi"):
    print(f"{greeting} {name}!")

@flow(flow_run_name="{date:%A}-run")
def my_flow(date):
    return my_task(name="chris")

my_flow(date=pendulum.now())