-
Notifications
You must be signed in to change notification settings - Fork 30
Overriding sidekiq options
z7zoe edited this page Oct 10, 2012
·
2 revisions
If you need to override some of the sidekiq options you can:
class MyMailer < ActionMailer::Base
include Sidekiq::Mailer
sidekiq_options queue: 'priority', retry: 'false'
def bye(to)
mail(to: to)
end
end
Available options:
- :queue - use a named queue for this Worker, default 'mailer'
- :retry - enable the RetryJobs middleware for this Worker, default true
- :timeout - timeout the perform method after N seconds, default nil
- :backtrace - whether to save any error backtrace in the retry payload to display in web UI, can be true, false or an integer number of lines to save, default false