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

13 lines
267 B
Ruby
Raw Normal View History

class InvalidGpgSignatureUpdateWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
def perform(gpg_key_id)
2017-07-11 11:35:57 +00:00
gpg_key = GpgKey.find_by(id: gpg_key_id)
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