https://prefect.io logo
n

Nicholas

06/30/2023, 1:06 PM
Hi everyone, I’m not sure I understood how to use
flow_run_name
in a flow decorator. With:
Copy code
@flow(
    name="Test",
    flow_run_name="{settings.incremental_run_name}",
)
def test_flow(
    settings: Settings,
):
   ...
The flow still has a random name
Where
Copy code
class Settings(BaseSettings):
    some_input: str

    @property
    def incremental_run_name(self):
        now = datetime.now(timezone.utc).strftime("%Y%m%d%H%M%S")
        return f"{now}-{self.some_input}"