https://prefect.io logo
t

Tomas Knoetze

08/12/2022, 1:00 PM
Hello! Quick question: is there an equivalent for task_run_name in Prefect 2.0?
1
a

Anna Geller

08/12/2022, 1:33 PM
You can do
my_task.with_options(name="my new name")(arg, arg)
in your flow
gratitude thank you 2
🙌 1
p

Pedro Machado

08/12/2022, 5:59 PM
Can you still use templating in the
@task
decorator to set the name at run time?
a

Anna Geller

08/12/2022, 8:06 PM
no, this syntax is when you call it from flow
3 Views