Sha256: f2278829fc5a486b022df23775cf9b37533729e2e04ee0d98ab05704216e0f56
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
# encoding: utf-8 module Ratchetio class Sidekiq def call(worker, msg, queue) begin yield rescue => e msg.delete('backtrace') msg.delete('error_backtrace') msg.delete('error_message') msg.delete('error_class') Ratchetio.report_exception(e, :params => msg) raise end end end end Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Ratchetio::Sidekiq end end
Version data entries
5 entries across 5 versions & 1 rubygems