Mitch
09/10/2024, 7:09 PMMarvin
09/10/2024, 7:09 PMMitch
09/10/2024, 7:09 PMMarvin
09/10/2024, 7:10 PMpython
from prefect import flow, task
from prefect.artifacts import create_link_artifact
@task
def my_first_task():
create_link_artifact(
key="irregular-data",
link="<https://example.com/highly_variable_data.csv>",
description="## Highly variable data",
)
@task
def my_second_task():
create_link_artifact(
key="irregular-data",
link="<https://example.com/low_pred_data.csv>",
description="# Low prediction accuracy",
)
@flow
def my_flow():
my_first_task()
my_second_task()
if __name__ == "__main__":
my_flow()
You can view artifacts on the Artifacts page in the Prefect UI.
For more details, check the Prefect 2.x artifact documentation.Bring 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