aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2019-01-01 19:40:59 -0500
committerGitHub <noreply@github.com>2019-01-01 19:40:59 -0500
commited51351536294b5cee9923727f401c5eb4dc2af1 (patch)
tree6a5cbb1655ddb1f7f76d39464724a8ebfecb485f /guides
parent0dec2b5aa367d4f858e7878f1f5d1fcda2dd37de (diff)
downloadrails-ed51351536294b5cee9923727f401c5eb4dc2af1.tar.gz
rails-ed51351536294b5cee9923727f401c5eb4dc2af1.tar.bz2
rails-ed51351536294b5cee9923727f401c5eb4dc2af1.zip
Permit sending Active Storage purge and analysis jobs to separate queues
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index ed3c406693..3b21197ae4 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -843,10 +843,16 @@ normal Rails server.
* `config.active_storage.content_types_to_serve_as_binary` accepts an array of strings indicating the content types that Active Storage will always serve as an attachment, rather than inline. The default is `%w(text/html
text/javascript image/svg+xml application/postscript application/x-shockwave-flash text/xml application/xml application/xhtml+xml)`.
-* `config.active_storage.queue` can be used to set the name of the Active Job queue used to perform jobs like analyzing the content of a blob or purging a blog.
+* `config.active_storage.queues.analysis` accepts a symbol indicating the Active Job queue to use for analysis jobs. When this option is `nil`, analysis jobs are sent to the default Active Job queue (see `config.active_job.default_queue_name`).
+
+ ```ruby
+ config.active_storage.queues.analysis = :low_priority
+ ```
+
+* `config.active_storage.queues.purge` accepts a symbol indicating the Active Job queue to use for purge jobs. When this option is `nil`, purge jobs are sent to the default Active Job queue (see `config.active_job.default_queue_name`).
```ruby
- config.active_storage.queue = :low_priority
+ config.active_storage.queues.purge = :low_priority
```
* `config.active_storage.logger` can be used to set the logger used by Active Storage. Accepts a logger conforming to the interface of Log4r or the default Ruby Logger class.
@@ -870,6 +876,7 @@ text/javascript image/svg+xml application/postscript application/x-shockwave-fla
The default is `/rails/active_storage`
+
### Configuring a Database
Just about every Rails application will interact with a database. You can connect to the database by setting an environment variable `ENV['DATABASE_URL']` or by using a configuration file called `config/database.yml`.