debian-mirror-gitlab/app/workers/invalid_gpg_signature_update_worker.rb
2021-12-11 22:18:48 +05:30

20 lines
425 B
Ruby

# frozen_string_literal: true
class InvalidGpgSignatureUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3
feature_category :source_code_management
weight 2
def perform(gpg_key_id)
gpg_key = GpgKey.find_by_id(gpg_key_id)
return unless gpg_key
Gitlab::Gpg::InvalidGpgSignatureUpdater.new(gpg_key).run
end
end