gitlab-org--gitlab-foss/app/workers/invalid_gpg_signature_updat...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
425 B
Ruby
Raw Normal View History

# 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)
2017-07-11 11:35:57 +00:00
2017-07-26 14:01:24 +00:00
return unless gpg_key
2017-07-11 11:35:57 +00:00
Gitlab::Gpg::InvalidGpgSignatureUpdater.new(gpg_key).run
end
end