Sha256: 92bccb13eefeefbf7238c613da51088373e6dc7cc51bbdbd19bfbcc7c4037611

Contents?: true

Size: 360 Bytes

Versions: 33

Compression:

Stored size: 360 Bytes

Contents

require 'roo_on_rails/environment'
module RooOnRails
  module Sidekiq
    class Loader
      def self.run
        RooOnRails::Environment.load
        ENV['RAILS_MAX_THREADS'] = (ENV.fetch('SIDEKIQ_THREADS').to_i + 1).to_s
        ENV['DATABASE_REAPING_FREQUENCY'] = ENV['SIDEKIQ_DATABASE_REAPING_FREQUENCY']
        exec 'sidekiq'
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
roo_on_rails-2.2.2 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-2.2.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-2.2.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-2.1.2 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-2.1.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-2.0.0.pre.pre.2 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-2.0.0.pre.pre.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.22.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.21.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.20.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.19.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.18.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.17.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.16.2 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.16.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.16.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.15.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.14.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.13.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.13.0 lib/roo_on_rails/sidekiq/loader.rb