Thread
#prefect-community
    Diego Oliveira

    Diego Oliveira

    6 months ago
    Hello everyone. I would like to know if is possible to dynamically change run name based on schedule parameter?
    Kevin Kho

    Kevin Kho

    6 months ago
    Yeah, you can use the RenameFlowRun task and just use the Parameter value in it
    Anna Geller

    Anna Geller

    6 months ago
    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
    Diego Oliveira

    Diego Oliveira

    6 months ago
    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
    Kevin Kho

    Kevin Kho

    6 months ago
    Yeah using the RenameFlowRun task will help you
    Anna Geller

    Anna Geller

    6 months ago
    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:
    prefect.context["parameters"].get("parameter_name")
    Diego Oliveira

    Diego Oliveira

    6 months ago
    Thanks