Class: ActiveJob::QueueAdapters::ShoryukenAdapter::JobWrapper
- Inherits:
-
Object
- Object
- ActiveJob::QueueAdapters::ShoryukenAdapter::JobWrapper
- Includes:
- Shoryuken::Worker
- Defined in:
- lib/shoryuken/extensions/active_job_adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from Shoryuken::Worker
Instance Method Details
#perform(sqs_msg, hash) ⇒ Object
88 89 90 91 92 |
# File 'lib/shoryuken/extensions/active_job_adapter.rb', line 88 def perform(sqs_msg, hash) receive_count = sqs_msg.attributes['ApproximateReceiveCount'].to_i past_receives = receive_count - 1 Base.execute hash.merge({ 'executions' => past_receives }) end |