spindlelabs/pyes — pull request #1 by simonyun (2013-01-08 21:51:02+00:00)
Title: Sleep-retry on shard failure for non-scroll searches

We've been seeing intermittent shard failures that cause entire runs of pyes-based scripts to fail, requiring us to start them from the beginning. This can cost us hours and even days. This sleep-retry logic makes pyes sleep and retry a number of times before asserting.