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

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

module Chaos
  class DbSpinWorker # rubocop:disable Scalability/IdempotentWorker
    include ApplicationWorker

    data_consistency :always

    sidekiq_options retry: 3
    include ChaosQueue

    def perform(duration_s, interval_s)
      Gitlab::Chaos.db_spin(duration_s, interval_s)
    end
  end
end