Sha256: 7c4ead4caa7d790ec1ff0a5393aadd6a8bb9def08c999f97a754ee5b3b2156fb

Contents?: true

Size: 618 Bytes

Versions: 22

Compression:

Stored size: 618 Bytes

Contents

require 'kuroko2/servers/base'

module Kuroko2
  module Servers
    class JobScheduler < Base

      private

      def worker
        Kuroko2::Workflow::Scheduler
      end

      def default_options
        {
          worker_type: 'embedded',
          daemonize:   Rails.env.production?,
          log:         Rails.env.production? ? Rails.root.join('log/job-scheduler.log').to_s : $stdout,
          log_level:   Rails.env.production? ? :info : :debug,
          pid_path:    Rails.root.join('tmp/pids/job-scheduler.pid').to_s,
          supervisor:  Rails.env.production?,
        }
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuroko2-0.8.0 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.7.0 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.6.0 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.5.2 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.5.1 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.5.0 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.6 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.5 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.4 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.3 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.2 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.1 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.4.0 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.3.4 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.3.3 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.3.2 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.3.1 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.3.0 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.2.3 lib/autoload/kuroko2/servers/job_scheduler.rb
kuroko2-0.2.2 lib/autoload/kuroko2/servers/job_scheduler.rb