Sha256: 8c0c6ac056aa22be506e9f4b4196a48d66a490e4043dc9272118ac4cb9d73075
Contents?: true
Size: 462 Bytes
Versions: 62
Compression:
Stored size: 462 Bytes
Contents
module Workarea class ProcessExport include Sidekiq::Worker include Sidekiq::CallbacksWorker include Sidekiq::Throttled::Worker sidekiq_options( enqueue_on: { DataFile::Export => :create }, queue: 'low', retry: false ) sidekiq_throttle(concurrency: { limit: 1 }) def perform(id) export = DataFile::Export.find(id) export.process! Admin::DataFileMailer.export(id).deliver_now end end end
Version data entries
62 entries across 62 versions & 1 rubygems