Skip to content

Commit

Permalink
Finely tune settings
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-ferrandis committed Feb 17, 2023
1 parent 2840ef2 commit 5c6aa21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/initializers/good_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
config.active_job.default_priority = 0

config.good_job.preserve_job_records = true
config.good_job.retry_on_unhandled_error = false
config.good_job.on_thread_error = ->(exception) { Sentry.capture_exception(exception) }
config.good_job.execution_mode = :external
config.good_job.queues = '*'
config.good_job.max_threads = 5
config.good_job.poll_interval = 30 # seconds
config.good_job.shutdown_timeout = 25 # seconds
config.good_job.enable_cron = true

# Enable cron in this process; e.g. only run on the first Scalingo worker process
config.good_job.enable_cron = ENV["CONTAINER"] == "worker-1"
Expand Down

0 comments on commit 5c6aa21

Please sign in to comment.