Skip to content

Commit

Permalink
Report good job connection errors to Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Jan 24, 2025
1 parent 3140835 commit 7e0ec4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/good_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
}
end

config.good_job.on_thread_error = ->(exception) { Rails.error.report(exception) }

# 5 queue threads + 3 for job listener, cron, executor = 8 threads allocated
config.queues = {
"latency_low" => { max_threads: 1, priority: 10 }, # ~30s jobs
Expand Down

0 comments on commit 7e0ec4b

Please sign in to comment.