DA6: Reliable automations

Lesson 1 of 5 ยท reading 15โ€“25 minutes; practice and project time is on the module page

Retries and passing failures

๐ŸŽฏYou'll be able to

Tell passing failures from lasting ones and set retries with backoff only where they help.

๐Ÿ The everyday picture

If a call doesn't connect, you try again in a minute. If the number has been disconnected, calling again every minute won't help; you need a different number.

๐Ÿ“˜What it really is

๐Ÿ“A worked example

The Sharma Textiles payment workflow calls the accounts app's API, which sometimes answers "503" during its nightly backup at 2 am.

Error Kind Handling
503 Service Unavailable Passing Retry 3 times, waiting 30 s, 2 min, 5 min
429 Too Many Requests Passing Retry after the wait the API suggests
401 Unauthorized Lasting No retry; alert: credentials need attention
400 Bad Request Lasting No retry; alert with the input data

Over a month, 11 runs hit a 503. All 11 succeeded on a retry, and none needed a person.

๐ŸŒWhere it's used

๐Ÿ“Case scenario

A campaign workflow sends 800 WhatsApp messages and about 200 fail with "429 Too Many Requests". Retrying immediately makes it worse. You split the list into batches of 50 with a pause between batches, and add Retry On Fail with a longer wait. The next run sends all 800 without a rate-limit error.

๐Ÿ–ฑ๏ธTry it

For each external call in your order workflow, write down which errors are passing and which are lasting. Turn on Retry On Fail with sensible waits for the passing ones, and test by pointing one call at a URL that times out.

โš ๏ธCommon mistakes

๐Ÿ› ๏ธFor your project

Project 1 test 7 sends two 503 replies before the accounts service recovers; test 8 sends 401 every time. Your workflow must treat them differently.

โœ…Quick check

Is "401 Unauthorized" worth retrying automatically?

Show the answer

No. It's a lasting error: the credentials need attention, so it should alert a person.

What is backoff?

Show the answer

Waiting longer between each retry, so a struggling service has time to recover.

โ† BackDA6
ProLearners Assist