Hello everyone!
I'm currently playing around with the artifacts. I'm wondering if i can give artifacts a custom name. does anybody know if it's possible and how to do it?
e
emre
03/31/2021, 11:59 AM
I think it is hardwired to the task name. I dug down the source code a little, and I think an artifact is just a mapping between task_run_id and artifact data.
So I guess, changing then task name changes the artifact name š
t
Tim Pƶrtner
03/31/2021, 12:02 PM
i did that too already (also tried to set the task_run_id via the context just before creating the markdown but always ran into many exceptions)
thanks for checking!
something for a feature requests then...
z
Zanie
03/31/2021, 2:28 PM
Changing the task run id will break things because that id is linked to the database š changing the task run name is allowed though. Perhaps take a look at https://docs.prefect.io/core/concepts/templating.html
thanks for replying!
i was trying to do that but didnt quite work out as i wanted it to be.
i am using great_expectations with prefect and i am currently trying to get it running with a mapped task environment but running into problems because the mapped tasks can't find the config files for great_expectations. was about to post another message into the chat. do you want me to open another thread for that?
z
Zanie
03/31/2021, 2:36 PM
You may want to -- it's not my support day so you're more likely to get a response and it exposes it to the rest of the community.