Retrying Failed Jobs Creates New Failures
Let’s see how retrying a job can cause a different failure. If you recall, the example app’s services can cause problems that trigger retries in the example app. In the last chapter, we configured the payments service to crash on every call. Let’s do the same thing, but for the email service.
As a quick reminder, here’s how to do that:
-
Go to the example app’s home page at http://localhost:4000.
-
Click on the triangle next to the email service to expand its info. Click the link labeled “Manage…”
-
On the new screen, check the box for “Crash,” then click the button “Update Email.”
At this point, every email service request will return a 5xx, which will cause our CompleteOrderJob to fail. Go ahead ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access