opscode/supermarket — pull request #379 by bcobb (2014-05-28 14:02:02+00:00)
Title: Propagate 500s when refreshing an OAuth token

:fork_and_knife:

Even after #374 an OAuth token failed to refresh. Looking at the Sidekiq logs, the response to the refresh request in question was a generic 500 from the OAuth provider. In this case, we want the worker to crash and re-queue itself.