Skip to content

`Amigo::Retry` errors store error information on the job

Compare
Choose a tag to compare
@rgalanakis rgalanakis released this 24 Feb 07:56
· 29 commits to main since this release

The jobs did not store the error_class or error_message (since they didn't hit Sidekiq's retry system). Store whatever the caller provides in the error, so you can provide context like "raise Amigo::Retry::Retry.new(5, "rate limited")to see that the job was rate limited orraise Amigo::Retry::Die("invalid token")` to kill a job because it cannot auth.