Sha256: e22a4a20cdcbf7d41f6a2d626736dedcc0aee96ea4ab773717cee7a1e8acd6eb

Contents?: true

Size: 1.92 KB

Versions: 32

Compression:

Stored size: 1.92 KB

Contents

module RocketJob
  class Railtie < Rails::Railtie
    # Exposes Rocket Job's configuration to the Rails application configuration.
    #
    # @example Set up configuration in the Rails app.
    #   module MyApplication
    #     class Application < Rails::Application
    #       # The maximum number of workers to create on any one server. (Default: 10)
    #       config.rocket_job.max_workers = config.secret_config.fetch("rocket_job/max_workers", type: :integer, default: 10)
    #
    #       # Number of seconds between heartbeats from a Rocket Job Server process. (Default: 15)
    #       config.rocket_job.heartbeat_seconds = config.secret_config.fetch("rocket_job/heartbeat_seconds", type: :float, default: 15.0)
    #
    #       # Maximum number of seconds a Worker will wait before checking for new jobs. (Default: 5)
    #       config.rocket_job.max_poll_seconds = config.secret_config.fetch("rocket_job/max_poll_seconds", type: :float, default: 5.0)
    #
    #       # Number of seconds between checking for:
    #       # - Jobs with a higher priority
    #       # - If the current job has been paused, or aborted
    #       #
    #       # Making this interval too short results in too many checks for job status
    #       # changes instead of focusing on completing the active tasks
    #       #
    #       # Note:
    #       #   Not all job types support pausing in the middle
    #       # Default: 60 seconds between checks.
    #       config.rocket_job.re_check_seconds = config.secret_config.fetch("rocket_job/re_check_seconds", type: :float, default: 60.0)
    #
    #       config.rocket_job.include_filter    = config.secret_config["rocket_job/include_filter"]
    #       config.rocket_job.exclude_filter    = config.secret_config["rocket_job/exclude_filter"]
    #       config.rocket_job.where_filter      = config.secret_config["rocket_job/where_filter"]
    #     end
    #   end
    config.rocket_job = Config
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rocketjob-5.2.0 lib/rocket_job/railtie.rb
rocketjob-5.2.0.beta3 lib/rocket_job/railtie.rb
rocketjob-5.2.0.beta2 lib/rocket_job/railtie.rb
rocketjob-5.2.0.beta1 lib/rocket_job/railtie.rb
rocketjob-5.1.1 lib/rocket_job/railtie.rb
rocketjob-5.1.0 lib/rocket_job/railtie.rb
rocketjob-5.0.0 lib/rocket_job/railtie.rb
rocketjob-5.0.0.rc1 lib/rocket_job/railtie.rb
rocketjob-5.0.0.beta4 lib/rocket_job/railtie.rb
rocketjob-5.0.0.beta3 lib/rocket_job/railtie.rb
rocketjob-5.0.0.beta2 lib/rocket_job/railtie.rb
rocketjob-5.0.0.beta lib/rocket_job/railtie.rb