Hello How can I rename a task output ? Is it poss...
# prefect-community
i
Hello How can I rename a task output ? Is it possible to use with it a task nout=3 ?
k
Rename a task run? What do you mean by rename output?
i
For example: I have a task (preprocess) that outputs two results (preprocess[0], preprocess[1]). I want to rename them to (blues, reds).
k
Ah I see what you mean. I don’t think this can be done with
nout
.
i
Is it possible if it is just a normal task ?
k
Yeah
Copy code
@task(task_run_name=...)
or
Copy code
@task(name=...)
i
Let me give you another example. I have 3 tasks where each output is added to a list. The names of the output of task are just arg1, arg2, arg3. I would like to add better names.
k
I know what you mean. I don’t think it can be done because the task run name does not take a list.
i
I was reading an issue regarding it and someone mentioned that it was possible. I think I misunderstood them. https://github.com/PrefectHQ/prefect/issues/3789#issuecomment-789296504
k
Based on this, I don’t think you can yet. I think he meant
manual
as in we made a manual change on our side
i
Aha too bad. Thank you though Kevin for your help.