https://prefect.io logo
Title
e

Ed Burroughes

03/27/2023, 3:16 PM
Hi, I'm currently migrating to prefect 2 from 1, there are a few things I'm unable to find equivalent task params for in prefect 2, see below examples for more details: 1. Getting the results to persist using PrefectResult():
@task(result=PrefectResult())
def return_results(table_name):
    return {"table_name": table_name)
2. Running the task no matter the upstream state using
trigger=all_finished:
@task(result=PrefectResult(), trigger=all_finished)
def return_results(table_name):
    return {"table_name": table_name)
Can anyone point me in the right direction to the equivalent Prefect 2 features, thank you 🙂