Hello folks, i am trying to find a way to give a flow runs a name (currently its generated dynamically in prefect, see screenshot)
Is there a way i can configure a flow run name in a code? I don’t see any parameter in
flow.register()
I looked into the documentation but couldn’t find it.
g
Greg Roche
09/02/2021, 9:08 AM
There's no parameter for this in
flow.register()
because you're wanting to set a flow run name (not the flow name). Flows are registered once and then can be run an arbitrary number of times afterwards, each run would get a different name.
To specify the flow run name you could:
• provide the name in the UI when starting a new run;
• provide the name as a parameter when running the CLI or with a GraphQL mutation (https://docs.prefect.io/orchestration/flow-runs/creation.html#flow-run-names)
• use
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.