Skip to content

Commit

Permalink
Add instructions for configuring Sidekiq worker
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavCsonka authored Mar 18, 2021
1 parent 5e82f7e commit 6a34780
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ config.async = :sidekiq # Sidekiq
config.async = :resque # Resque (recommended)
```

If you want to configure Sidekiq worker you can:
```ruby
Vero::SidekiqWorker.sidekiq_options_hash = Vero::SidekiqWorker.get_sidekiq_options.merge("queue" => "low")
```
or define the class within the initializer
```ruby
class MyVeroSidekiqWorker < Vero::SidekiqWorker
sidekiq_options queue: 'low'
end
```

**Note:** If you're using Mongoid with DelayedJob, you must add
`gem "delayed_job_mongoid"` to your Gemfile.

Expand Down

0 comments on commit 6a34780

Please sign in to comment.