<@ULVA73B9P> can the flow run animal names in pref...
# ask-marvin
r
@Marvin can the flow run animal names in prefect be changed to Italian rather than English?
m
thought for 128.8 seconds
Short answer: not out of the box. In Prefect 3.x, the default random run names come from an English slug generator, so there isn’t a built-in setting to switch them to Italian. What you can do is override the flow run name yourself with
flow_run_name
on the flow. Example:
Copy code
python
import random
from prefect import flow

ITALIAN_ADJECTIVES = ["veloce", "forte", "gentile", "furbo", "elegante"]
ITALIAN_ANIMALS = ["gatto", "lupo", "orso", "falco", "leone"]

def italian_run_name():
    return f"{random.choice(ITALIAN_ADJECTIVES)}-{random.choice(ITALIAN_ANIMALS)}"

@flow(flow_run_name=italian_run_name)
def my_flow():
    pass
That will give runs names like
veloce-gatto
or
furbo-falco
. You can also use parameter-based names:
Copy code
python
from prefect import flow

@flow(flow_run_name="ordine-{order_id}")
def process_order(order_id: str):
    pass
So the practical answer is: * Built-in Italian random names? No. * Custom Italian names? Yes, via
flow_run_name
. Relevant docs: - Prefect flows API - Flows concepts If you want, I can also show you how to make the Italian naming reusable across all your flows.