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
Public Class Methods
Source
# File lib/rollbar/delay/shoryuken.rb, line 18 def self.call(payload) new.call(payload, :queue => queue) end
Public Instance Methods
Source
# File lib/rollbar/delay/shoryuken.rb, line 22 def call(payload, options = {}) self.class.perform_async(payload, options) end
Source
# File lib/rollbar/delay/shoryuken.rb, line 31 def perform(_sqs_message, payload) Rollbar.process_from_async_handler(payload) end