Pedro Machado
07/26/2021, 4:58 PMcreate_flow_run
and get_task_run_result
, how can I assign a different name to different instances so that I can see which task instance is running in the UI without having to look at the logs?Kevin Kho
Kevin Kho
client.create_flow_run()
takes in a run name that you can use to give the Flow run a name.Zanie
In [1]: from prefect.tasks.prefect import create_flow_run
In [2]: create_flow_run.name
Out[2]: 'create_flow_run'
In [4]: my_task = create_flow_run.copy(name="foo")
In [5]: my_task.name
Out[5]: 'foo'
Zanie
Pedro Machado
07/26/2021, 5:46 PMcopy
approach you suggested.