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-1.12.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.11.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.11.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.10.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.9.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.8.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.8.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.7.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.6.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.5.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.4.0 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.3.1 lib/roo_on_rails/sidekiq/loader.rb
roo_on_rails-1.3.0 lib/roo_on_rails/sidekiq/loader.rb