mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add doc for setting the queue adapter.
This commit is contained in:
parent
8a05587227
commit
29c9dcc4af
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,13 @@ switch between them without having to rewrite your jobs.
|
|||
|
||||
## Usage
|
||||
|
||||
Set the queue adapter for Active Job:
|
||||
|
||||
``` ruby
|
||||
ActiveJob::Base.queue_adapter = :inline # default queue adapter
|
||||
# Adapters currently supported: :resque, :sidekiq, :sucker_punch, :delayed_job
|
||||
```
|
||||
|
||||
Declare a job like so:
|
||||
|
||||
```ruby
|
||||
|
|
Loading…
Reference in a new issue