Hi. Is it possible to override a task name in work...
# flytekit
h
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
Hmm that is opus, all of them should be identical
That’s the new change
h
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
I think it is supposed to be a feature
h
👍 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
push an empty commit?
we pushed a temporary fix to just comment out the offending test
266 Views