You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bruno Antunes edited this page Oct 3, 2018
·
11 revisions
Good news - you don't need to do anything to retry a message, SQS will handle that automatically for you. Basically do not call sqs_msg.delete if you want to retry a message. The message will become available again when it reaches the visibility_timeout.
classMyWorkerincludeShoryuken::Workershoryuken_optionsqueue: 'default',auto_delete: truedefperform(sqs_msg,body)do_something(sqs_msg,body)# raises an exceptionendend
The example above will cause the message to be available again in case the do_something raises an exception. When auto_delete is set to true, Shoryuken will auto delete the message in case of the worker doesn't raise an exception.