debian-mirror-gitlab/app/workers/build_trace_sections_worker.rb
2020-04-08 14:13:33 +05:30

12 lines
342 B
Ruby

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