Lukáš Pravda
08/10/2022, 3:09 PMtag = prefect.context.get("artifacts_tag_id")
msgs: list = prefect.context.get("artifacts_content") or []
msgs.append(str(err))
content = create_err_artifact_from_list_of_errs(msgs)
if tag:
update_markdown_artifact(tag, content)
else:
tag = create_markdown_artifact(content)
prefect.context["artifacts_tag_id"] = tag
prefect.context["artifacts_content"] = msgs
but I found out that mutating the context from within a task is not recommended. So I wonder if there is any other prefect way of sharing these two ‘variables’ throughout the life of a prefect flow.
Thank you very much!Mason Menges
08/10/2022, 5:44 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by