From 6a3478057c04ad5077d463c4a8b370018975ccf2 Mon Sep 17 00:00:00 2001 From: Miroslav Csonka Date: Thu, 18 Mar 2021 15:19:49 +0000 Subject: [PATCH] Add instructions for configuring Sidekiq worker Relevant links: * https://github.com/getvero/vero/issues/54 * https://github.com/getvero/vero/pull/56/files * https://github.com/getvero/vero/pull/57 --- README.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.markdown b/README.markdown index a20dffd..2283eb4 100644 --- a/README.markdown +++ b/README.markdown @@ -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.