2017-07-10 07:19:50 -04:00
|
|
|
class CreateGpgSignatureWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
include DedicatedSidekiqQueue
|
|
|
|
|
|
|
|
def perform(commit_sha, project_id)
|
|
|
|
project = Project.find_by(id: project_id)
|
2017-07-26 10:01:24 -04:00
|
|
|
return unless project
|
2017-07-10 07:19:50 -04:00
|
|
|
|
2017-08-15 07:22:55 -04:00
|
|
|
# This calculates and caches the signature in the database
|
|
|
|
Gitlab::Gpg::Commit.new(project, commit_sha).signature
|
2017-07-10 07:19:50 -04:00
|
|
|
end
|
|
|
|
end
|