Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cronjob_queue.rb « concerns « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25ee4539cab10bac17378afc65d09da4774da8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

# Concern that sets various Sidekiq settings for workers executed using a
# cronjob.
module CronjobQueue
  extend ActiveSupport::Concern

  included do
    queue_namespace :cronjob
    sidekiq_options retry: false
    worker_context project: nil, namespace: nil, user: nil
  end
end