Skip to content

Commit

Permalink
[config] use a different queue for mailers
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Jan 31, 2025
1 parent 110e883 commit 17904b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ class Application < Rails::Application
# ActiveJob configuration
config.active_job.queue_adapter = :sidekiq

# ActionMailer background queues
config.action_mailer.deliver_later_queue_name = :mailers

# Use db/structure.sql with SQL as schema format
# This is needed to store in the schema SQL statements not covered by the ORM
config.active_record.schema_format = :sql

# Guard against DNS rebinding attacks by permitting hosts
# localhost is necessary for the docker image
config.hosts = ENV.fetch('ALLOWED_HOSTS', 'localhost').split(' ')
# config.hosts << 'timeoverflow.local'
# config.hosts << 'staging.timeoverflow.org'
# config.hosts << 'www.timeoverflow.org'
# config.hosts << 'timeoverflow.org'
end
end
1 change: 1 addition & 0 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
:queues:
- default
- cron
- mailers

0 comments on commit 17904b2

Please sign in to comment.