lib/good_job/cli.rb in good_job-3.22.0 vs lib/good_job/cli.rb in good_job-3.23.0
- old
+ new
@@ -66,11 +66,11 @@
banner: 'COUNT',
desc: "Default number of threads per pool to use for working jobs. (env var: GOOD_JOB_MAX_THREADS, default: 5)"
method_option :poll_interval,
type: :numeric,
banner: 'SECONDS',
- desc: "Interval between polls for available jobs in seconds (env var: GOOD_JOB_POLL_INTERVAL, default: 5)"
+ desc: "Interval between polls for available jobs in seconds (env var: GOOD_JOB_POLL_INTERVAL, default: 10)"
method_option :max_cache,
type: :numeric,
banner: 'COUNT',
desc: "Maximum number of scheduled jobs to cache in memory (env var: GOOD_JOB_MAX_CACHE, default: 10000)"
method_option :shutdown_timeout,
@@ -92,10 +92,13 @@
desc: "Path to write daemonized Process ID (env var: GOOD_JOB_PIDFILE, default: tmp/pids/good_job.pid)"
method_option :probe_port,
type: :numeric,
banner: 'PORT',
desc: "Port for http health check (env var: GOOD_JOB_PROBE_PORT, default: nil)"
+ method_option :probe_handler,
+ type: :string,
+ desc: "Use 'webrick' to use WEBrick to handle probe server requests which is Rack compliant, otherwise default server that is not Rack compliant is used. (env var: GOOD_JOB_PROBE_HANDLER, default: nil)"
method_option :queue_select_limit,
type: :numeric,
banner: 'COUNT',
desc: "The number of queued jobs to select when polling for a job to run. (env var: GOOD_JOB_QUEUE_SELECT_LIMIT, default: nil)"
@@ -110,10 +113,10 @@
capsule.start
systemd.start
if configuration.probe_port
- probe_server = GoodJob::ProbeServer.new(port: configuration.probe_port)
+ probe_server = GoodJob::ProbeServer.new(app: configuration.probe_app, port: configuration.probe_port, handler: configuration.probe_handler)
probe_server.start
end
require 'concurrent/atomic/event'
@stop_good_job_executable = Concurrent::Event.new