Hey, I have a task I call four times with differe...
# ask-the-community
v
Hey, I have a task I call four times with different inputs. Is it possible to set the display name for each task run individually, as shown in the graph in UI? I looked at some docs and didn’t find anything about it, maybe I missed it
m
I think you should be able to make each call to a task a Node (by using
create_node
and passing the task and its parameters), and then you can use
.with_overrides(node_name="whatever_node_name_you_want")
Something like
Copy code
some_task(
        param1=val1,
        param2=val2,
    ).with_overrides(node_name="special_name_here")
k
You can directly use with_overrides, without using create_node
m
Even better
v
node_name changes the name from n0, n1, n2, etc. to my desired name, but this is not what the graph view shows in UI. The graph view shows the task’s name instead
Using just “name” works. Thanks!
116 Views