Skip to content

Change default queue name of all the internal jobs to be the job adapter's default#40766

Merged
rafaelfranca merged 1 commit intorails:6-1-stablefrom
rafaelfranca:rm-queue-defaults
Dec 8, 2020
Merged

Change default queue name of all the internal jobs to be the job adapter's default#40766
rafaelfranca merged 1 commit intorails:6-1-stablefrom
rafaelfranca:rm-queue-defaults

Conversation

@rafaelfranca
Copy link
Member

config.active_storage.queues.analysis:
From :active_storage_analysis to nil.

config.active_storage.queues.purge:
From :active_storage_purge to nil.

config.action_mailbox.queues.incineration:
From :action_mailbox_incineration to nil.

config.action_mailbox.queues.routing:
From :action_mailbox_routing to nil.

config.action_mailer.deliver_later_queue_name:
From :mailers to nil.

Fixes #40730.

cc @mperham

…ter's default

`config.active_storage.queues.analysis`:
From `:active_storage_analysis` to `nil`.

`config.active_storage.queues.purge`:
From `:active_storage_purge` to `nil`.

`config.action_mailbox.queues.incineration`:
From `:action_mailbox_incineration` to `nil`.

`config.action_mailbox.queues.routing`:
From `:action_mailbox_routing` to `nil`.

`config.action_mailer.deliver_later_queue_name`:
From `:mailers` to `nil`.

Fixes rails#40730.
@rafaelfranca
Copy link
Member Author

I'll forwardport those changes to master, but since the of the most important changes are in the new_framework_defaults file I opened against the stable branch.

@rafaelfranca rafaelfranca merged commit 188fb07 into rails:6-1-stable Dec 8, 2020
@rafaelfranca rafaelfranca deleted the rm-queue-defaults branch December 8, 2020 22:45
rafaelfranca added a commit that referenced this pull request Dec 8, 2020
Change default queue name of all the internal jobs to be the job adapter's default
@sedubois
Copy link
Contributor

The default should probably be changed in test helpers too, I had to fix tests to manually specify queue: "default":

def assert_enqueued_email_with(mailer, method, args: nil, queue: "mailers", &block)

@pftg
Copy link
Contributor

pftg commented Dec 15, 2020

added issue and fixing #40846

jonathanhefner added a commit to jonathanhefner/rails that referenced this pull request Jan 4, 2021
Follow-up to rails#40766.

This commit adds a few missing values to the "Baseline defaults"
section, and removes mention of default values elsewhere to prevent
confusion due to overloaded defaults.
Comment on lines +62 to +63
# Set the default queue name for the mail deliver job to the queue adapter default.
# Rails.application.config.action_mailer.deliver_later_queue_name = nil

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently this should be

ActionMailer::Base.deliver_later_queue_name = nil

because as said in #39810 "Since your initializer is only loaded after the framework, setting config.action_mailer.deliver_later_queue_name will not have any effect."

I tried to create a PR but I don't know which branch/tag I should start on to make a change for this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants