Hi. I'm on Prefect 1. What is the simplest way to ...
# ask-community
a
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
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
Thanks