Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 465 Bytes
require 'bundler/setup'
require 'sidekiq'
if ENV['USE_FIBER_POOL'].to_s.downcase == 'true'
$stderr.puts 'Using fiber pool'
if defined?(Sidekiq::Processor)
require_relative 'lib/celluloid/task_pooled_fiber'
[Sidekiq::Fetcher, Sidekiq::Manager, Sidekiq::Processor, Sidekiq::Scheduled::Poller].each do |klass|
klass.task_class(Celluloid::TaskPooledFiber)
end
end
end
class NoopWorker
include Sidekiq::Worker
def perform
end
end