Sha256: 0f4e4256fa34106bd59f161eadf126415b2dc1a1bc2f021438b73189f968d42d

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

# app/workers/sync_attachment_worker.rb
class SyncAttachmentWorker
  include Sidekiq::Worker
  sidekiq_options :queue => :email_queue, :retry => 1, :backtrace => true

  def perform(message_id)
    msg = Mastiff::Email::Message.get(message_id)
    msg.sync_message_attachments
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mastiff-0.1.4 lib/generators/mastiff/install/templates/sidekiq/sync_attachment_worker.rb
mastiff-0.1.3 lib/generators/mastiff/install/templates/sidekiq/sync_attachment_worker.rb
mastiff-0.1.1 lib/generators/mastiff/install/templates/sidekiq/sync_attachment_worker.rb
mastiff-0.1.0 lib/generators/mastiff/install/templates/sidekiq/sync_attachment_worker.rb