From 777392a1125dec5e0f3f3ea8d63556734687421d Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 2 Jul 2015 20:41:07 -0700 Subject: [PATCH] dynamic queues example --- examples/config.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/config.yml b/examples/config.yml index 8a3f8d8a..8e6e2326 100644 --- a/examples/config.yml +++ b/examples/config.yml @@ -5,12 +5,18 @@ --- :verbose: false :concurrency: 10 + # Set timeout to 8 on Heroku, longer if you manage your own systems. :timeout: 30 + +# Sidekiq will run this file through ERB when reading it so you can +# even put in dynamic logic, like a host-specific queue. +# http://www.mikeperham.com/2013/11/13/advanced-sidekiq-host-specific-queues/ :queues: - - [critical, 3] - - [default, 2] - - [low, 1] + - critical + - default + - <%= `hostname`.strip %> + - low # you can override concurrency based on environment production: