What're the best practices on error-handling in trigger scripts?

In particular, is there a blessed way to handle errors in subsequent scripts, and safely rollback the entire flow?

An example: A trigger-script sees a new entry in a Notion database. If a subsequent script fails with a transient error, I'd like to rollback the "last seen", so the trigger eventually gets re-run.
Was this page helpful?