https://flyte.org logo
#flytekit
Title
# flytekit
h

honnix

11/20/2022, 7:16 PM
Hi. Is it possible to override a task name in workflow? Looks like https://github.com/flyteorg/flytekit/blob/master/flytekit/core/node.py#L80 does not handle
metadata.name
change.
I did a quick hack as
Copy code
if "name" in kwargs:
             self._metadata._name = kwargs["name"]
And it seems to work.
Both
Graph
and
Timeline
tabs look correct with the overridden name, but not the
Nodes
tab, which show the original name (function name).
k

Ketan (kumare3)

11/20/2022, 10:12 PM
Hmm that is opus, all of them should be identical
That’s the new change
h

honnix

11/21/2022, 8:09 AM
Do you think supporting name override is a valid feature request? If so, I can go create one and hack on it a bit. I looked at the UI code briefly but couldn’t find where it doesn’t align.
k

Ketan (kumare3)

11/21/2022, 4:18 PM
I think it is supposed to be a feature
h

honnix

11/21/2022, 5:24 PM
👍 I will create it then. Thank you.
I worked on https://github.com/flyteorg/flytekit/pull/1344 a bit, but couldn’t figure out why CI failed.
y

Yee

11/22/2022, 2:00 AM
push an empty commit?
we pushed a temporary fix to just comment out the offending test
168 Views