Sha256: 8b3dc6b4a3bae9c8459ecac5fa7dc1dd1f9515f5c9b547d72f6e093c1c9fab76
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
module ActiveJob module Cron class Supervisor < Celluloid::SupervisionGroup supervise ActiveJob::Cron::Clock, as: :active_job_clock if handler_pool_size = ActiveJob::Cron.config.handler_pool_size pool ActiveJob::Cron::Handler, as: :cron_job_handler, size: handler_pool_size else pool ActiveJob::Cron::Handler, as: :cron_job_handler end class << self def clock Celluloid::Actor[:active_job_clock] end def handler Celluloid::Actor[:cron_job_handler] end def run raise "Sidetiq::Supervisor should not be run in foreground." end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_job-cron-0.1.0 | lib/active_job/cron/supervisor.rb |