Dealing With Resque Failure
July 02, 2014
Over on Stitch Fix’s engineering blog, I wrote a new post on how we deal with tricky job failures. Namely, make your jobs idempotent:
Resque::TermExceptionis really just kicking the can down the road. You might prevent some of your jobs from failing, but you’ll still get failed jobs. Granted, they will fail at a lower rate, but it’s still a rate correlated to the scale of your business.
The underlying problem is that jobs aren’t idempotent.
Check out the entire thing here.