https://prefect.io logo
#prefect-community
Title
# prefect-community
a

Anders Segerberg

01/04/2023, 10:19 PM
Hi. I'm on Prefect 1. What is the simplest way to set a task to run as the terminal task of a flow? One could add requisite
upstream_tasks
but that's laborious when we want the behavior to be independent of the upstream, as long as it is serially the final task execution.
m

Mason Menges

01/04/2023, 11:01 PM
Hey @Anders Segerberg you should be able to accomplish this using triggers https://docs-v1.prefect.io/api/latest/triggers.html, specifically the all_successful or all_finished triggers
a

Anders Segerberg

01/05/2023, 5:33 PM
Thanks
3 Views