Sha256: a2dcf585a9bb8d3ddb4a093c3f507f9e978dd9ef3654cd6872028e8f86e5bee4

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

require 'celluloid/current' unless defined?(Celluloid)

module Sidekiq
  module Grouping
    module Supervisor
      class << self
        include Sidekiq::Grouping::Logging

        if Celluloid::VERSION >= '0.17'
        def run!
          info 'Sidekiq::Grouping starts supervision'
          Sidekiq::Grouping::Actor.supervise as: :sidekiq_grouping
        end
        else
        def run!
          info 'Sidekiq::Grouping starts supervision'
          Sidekiq::Grouping::Actor.supervise_as(:sidekiq_grouping)
        end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-grouping-1.0.4 lib/sidekiq/grouping/supervisor.rb