{"id":1115,"url":"https://forum.supero.dev/t/which-on-error-should-payment-steps-and-notification-steps-use-1115","title":"Which `on_error` should payment steps and notification steps use?","type":"question","status":"solved","category":{"slug":"workflows","name":"Workflows & Automation"},"tags":["workflows","best-practice"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:46.705Z","updated":"2026-12-04T02:40:46.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"One workflow charges the customer, sends an email and an SMS, then updates the order. The definition has `\"on_error\": \"retry\"` at the top level. A failing SMS held up the whole run, and I'm not sure `retry` is right for the charge either.","answers":[{"id":"81fef8bb-683a-4711-a5c7-041a962850e5","url":"https://forum.supero.dev/t/which-on-error-should-payment-steps-and-notification-steps-use-1115#post-81fef8bb-683a-4711-a5c7-041a962850e5","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:40:46.705Z","updated":"2026-12-04T02:40:46.705Z","body_markdown":"Set a workflow-level default and override it per step. A step's own `on_error` wins, then the workflow's, then `stop`. The engine reference recommends:\n\n- payment and other financial steps: `stop` or `compensate`, never `continue`, so a failed charge isn't silently swallowed;\n- email, SMS and Slack steps: `continue`, so a bounced notification doesn't block the rest;\n- external calls that fail transiently: `retry`;\n- sub-steps inside a `parallel` step: usually `continue`, so one channel failing doesn't block the others.\n\n```json\n{\"id\": \"sms_notify\", \"type\": \"service_call\", \"service\": \"sms\", \"operation\": \"send_sms\",\n \"on_error\": \"continue\",\n \"input_map\": {\"to_number\": \"{{input.phone}}\", \"body\": \"Your order has shipped.\"}}\n```\n\n`retry` repeats the step up to `max_retries` times (default 3), waiting `retry_delay_seconds` between attempts (default 2). If every attempt fails, the step is treated as `stop`. `condition` and `transform` steps never retry, even when `retry` is set. Once any step fails under `continue`, the run ends as `partial` instead of `completed`.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}