summaryrefslogtreecommitdiff
path: root/app/workers/chaos/db_spin_worker.rb
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