gitlab-org--gitlab-foss/app/workers/build_coverage_worker.rb
2016-10-13 15:22:55 +02:00

9 lines
186 B
Ruby

class BuildCoverageWorker
include Sidekiq::Worker
sidekiq_options queue: :default
def perform(build_id)
Ci::Build.find_by(id: build_id)
.try(:update_coverage)
end
end