Closed basiszwo closed 7 years ago
Sucker Punch doesn't provide that, but I don't think anything's stopping you from building it in to the job:
class LogJob
include SuckerPunch::Job
def perform(event)
Log.new(event).track
rescue SeverError => e
LogJob.perform_in(2, event) # Enqueue the job for a few seconds later
end
end
thank you for the quick answer and for pointing me to perform_in
!
Sucker Punch doesn't provide [a retry feature] .. -2017
Is this still true in 2023? Thanks for the gem!
Nothing has changed. You're welcome :)
In my application I am sending emails with sucker punch asynchronously.
Sometimes the mail server has outages which results in exceptions.
I am wondering if there is a way to somehow retry a job after a couple of seconds?