Sha256: 365a8b5af0705a1092d55f91877ff45931e360d03f27a46f8861b99a095cc172
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
module SidekiqSendMail class Worker include Sidekiq::Worker sidekiq_options queue: :emails, retry: 0, backtrace: true sidekiq_retry_in do |count| 60 * 1440 * 30 # 30 days end def perform(mail_yaml) m = ::Mail::Message.from_yaml mail_yaml m.deliver # TODO check m.retryable?, set retry appropriately end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_send_mail-0.1.0 | app/workers/sidekiq_send_mail.rb |