Sha256: 572cdadd2e7ea3cd038532c6d77ca2346b571ba5fc398a5fa26f4c8f09af57f0

Contents?: true

Size: 295 Bytes

Versions: 34

Compression:

Stored size: 295 Bytes

Contents

module Messaging
  class SidekiqWorker
    include Sidekiq::Worker
    sidekiq_options queue: 'messaging'

    def perform(raw_message, handler_name)
      message = Messaging::Message::FromJson.(raw_message)
      handler = handler_name.constantize
      handler.call message
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
messaging-3.7.0 lib/messaging/sidekiq_worker.rb
messaging-3.6.2 lib/messaging/sidekiq_worker.rb
messaging-3.6.1 lib/messaging/sidekiq_worker.rb
messaging-3.6.0 lib/messaging/sidekiq_worker.rb
messaging-3.5.7 lib/messaging/sidekiq_worker.rb
messaging-3.5.6 lib/messaging/sidekiq_worker.rb
messaging-3.5.5 lib/messaging/sidekiq_worker.rb
messaging-3.5.4 lib/messaging/sidekiq_worker.rb
messaging-3.5.3 lib/messaging/sidekiq_worker.rb
messaging-3.5.2 lib/messaging/sidekiq_worker.rb
messaging-3.5.1 lib/messaging/sidekiq_worker.rb
messaging-3.4.3 lib/messaging/sidekiq_worker.rb
messaging-3.4.2 lib/messaging/sidekiq_worker.rb
messaging-3.4.1 lib/messaging/sidekiq_worker.rb