Sha256: 76b37b7c931e42f0eb1041d7db12cb24dac0004fe72d63296b3adc480e8b92d8

Contents?: true

Size: 308 Bytes

Versions: 19

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

require 'sidekiq'

module JobIteration
  module Integrations # @private
    JobIteration.interruption_adapter = -> do
      if defined?(Sidekiq::CLI) && Sidekiq::CLI.instance
        Sidekiq::CLI.instance.launcher.stopping?
      else
        false
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
job-iteration-1.1.9 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.8 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.7 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.6 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.5 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.4 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.3 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.2 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.1 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.1.0 lib/job-iteration/integrations/sidekiq.rb
job-iteration-1.0.0 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.8 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.7 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.6 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.5 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.4 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.3 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.2 lib/job-iteration/integrations/sidekiq.rb
job-iteration-0.9.1 lib/job-iteration/integrations/sidekiq.rb