Hello everyone. I would like to know if is possibl...
# prefect-community
d
Hello everyone. I would like to know if is possible to dynamically change run name based on schedule parameter?
k
Yeah, you can use the RenameFlowRun task and just use the Parameter value in it
upvote 1
a
This ☝️ is if you want to rename a flow run name. If you are more interested in changing a task or task run name, please clarify
d
The scheduled runs uses the random name combinations to generate run names. I would like to use one of the run parameters to name the run
k
Yeah using the RenameFlowRun task will help you
a
Yup. Hereis an example: https://discourse.prefect.io/t/how-can-i-set-a-custom-flow-run-name-instead-of-using-the-randomly-generated-adjective-noun-combination/131 and if you want to use parameter values in the name, you can grab those from the context:
Copy code
prefect.context["parameters"].get("parameter_name")
🙏 1
upvote 1
d
Thanks