https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Matthew Seligson

07/19/2022, 2:48 PM
I have a flow that runs every month. I’d like the flow run name to always include the name of the month like “My Flow - July”. What’s the best way to do this?
k

Kevin Kho

07/19/2022, 2:51 PM
That should just be the RenameFlowRun task plus using the date from context
m

Matthew Seligson

07/19/2022, 3:00 PM
Will that work for flows that are scheduled in the future?
Is there a way to do the renaming upon scheduling
k

Kevin Kho

07/19/2022, 3:04 PM
Ah you would need to hit the graphql API but you can do it with the client like this. You would need a script though
3 Views