class Rollbar::Delay::Shoryuken
Following class allows to send rollbars using Sho-ryu-ken as a background jobs processor. See the queue_name method which states that your queues needs to be names as “rollbar_ENVIRONMENT”. Retry intervals will be used to retry sending the same message again if failed before.
Attributes
queue[RW]
Public Class Methods
call(payload)
click to toggle source
# File lib/rollbar/delay/shoryuken.rb, line 18 def self.call(payload) new.call(payload, :queue => queue) end
Public Instance Methods
call(payload, options = {})
click to toggle source
# File lib/rollbar/delay/shoryuken.rb, line 22 def call(payload, options = {}) self.class.perform_async(payload, options) end
perform(_sqs_message, payload)
click to toggle source
# File lib/rollbar/delay/shoryuken.rb, line 31 def perform(_sqs_message, payload) Rollbar.process_from_async_handler(payload) end