From 2acc241d12ccd2c9603dc81a7f255ebb86211aa3 Mon Sep 17 00:00:00 2001 From: Urban Hafner Date: Tue, 17 Dec 2024 16:05:56 +0100 Subject: [PATCH] Low priority queue to put the CheckCluster job on Those should run after more important jobs. They are queued en masse, so they regularly block other things from progressing. --- app/workers/check_brand_clusters.rb | 2 ++ config/sidekiq.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/workers/check_brand_clusters.rb b/app/workers/check_brand_clusters.rb index 080bfbe23..59620fbd3 100644 --- a/app/workers/check_brand_clusters.rb +++ b/app/workers/check_brand_clusters.rb @@ -1,6 +1,8 @@ class CheckBrandClusters include Sidekiq::Worker + sidekiq_options queue: "low" + def perform(ids = nil) if ids.present? Array(ids).each { |id| check_cluster(id) } diff --git a/config/sidekiq.yml b/config/sidekiq.yml index f9dcf2851..d9d1d087f 100644 --- a/config/sidekiq.yml +++ b/config/sidekiq.yml @@ -3,3 +3,4 @@ :queues: - mailers - default + - low