debian-mirror-gitlab/app/workers/build_coverage_worker.rb
2021-01-03 14:25:43 +05:30

14 lines
357 B
Ruby

# frozen_string_literal: true
class BuildCoverageWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
include PipelineQueue
tags :requires_disk_io
# rubocop: disable CodeReuse/ActiveRecord
def perform(build_id)
Ci::Build.find_by(id: build_id)&.update_coverage
end
# rubocop: enable CodeReuse/ActiveRecord
end