diff options
author | George Claghorn <george.claghorn@gmail.com> | 2019-01-04 12:43:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 12:43:51 -0500 |
commit | 663f6cc14fd01650546ed508efb3f7ad8e30135c (patch) | |
tree | ef6fd7196d42934dbb4e1c9768bbd2933fef3071 /railties/lib/rails/generators | |
parent | a86b64918b5c42ffbef2e98a2955be3fe27468de (diff) | |
download | rails-663f6cc14fd01650546ed508efb3f7ad8e30135c.tar.gz rails-663f6cc14fd01650546ed508efb3f7ad8e30135c.tar.bz2 rails-663f6cc14fd01650546ed508efb3f7ad8e30135c.zip |
Send Active Storage jobs to dedicated queues by default
Match Action Mailbox, which sets a default queue for each of its two jobs.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt index 5cca8ae570..b0e36b071a 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt @@ -6,7 +6,7 @@ # # Read the Guide for Upgrading Ruby on Rails for more info on each option. -# Don't force requests from old versions of IE to be UTF-8 encoded +# Don't force requests from old versions of IE to be UTF-8 encoded. # Rails.application.config.action_view.default_enforce_utf8 = false # Embed purpose and expiry metadata inside signed and encrypted @@ -16,5 +16,9 @@ # It's best enabled when your entire app is migrated and stable on 6.0. # Rails.application.config.action_dispatch.use_cookies_with_metadata = true -# Return false instead of self when #enqueue method was aborted from the callback +# Return false instead of self when enqueuing is aborted from a callback. Rails.application.config.active_job.return_false_on_aborted_enqueue = true + +# Send Active Storage analysis and purge jobs to dedicated queues. +# Rails.application.config.active_storage.queues.analysis = :active_storage_analysis +# Rails.application.config.active_storage.queues.purge = :active_storage_purge |