Skip to content

Commit

Permalink
eager load rake
Browse files Browse the repository at this point in the history
- Hopefully fixes SolidQueue intermittent NameError uninitialized constant
See rails/solid_queue#276
  • Loading branch information
JoeCohen committed Nov 18, 2024
1 parent 612d76d commit 8c7bcdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@
config.action_cable.allowed_request_origins = [%r{http://*}, %r{https://*/}]

config.active_job.queue_adapter = :solid_queue

# Fixes SolidQueue intermittent NameError uninitialized constant
# https://github.com/rails/solid_queue/issues/276
# https://github.com/MushroomObserver/mushroom-observer/issues/2534
config.rake_eager_load = true
end

file = File.expand_path("../consts-site.rb", __dir__)
Expand Down

0 comments on commit 8c7bcdf

Please sign in to comment.