What is the Prefect 2.0 equivalent to triggers from Prefect 1.0?

The trigger functionality is part of Automations, which is a Cloud-only feature, that’s why you won’t find it in the Python client. You can sign up for a free tier (no time limits) here:

https://app.prefect.cloud/

I wrote this example for you to show how you can execute that cleanup task even when something fails: