gitlab-org--gitlab-foss/app/workers/build_trace_sections_worker.rb

15 lines
368 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class BuildTraceSectionsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
2017-09-25 12:54:08 -04:00
include PipelineQueue
tags :requires_disk_io
# rubocop: disable CodeReuse/ActiveRecord
2017-09-25 12:54:08 -04:00
def perform(build_id)
Ci::Build.find_by(id: build_id)&.parse_trace_sections!
end
# rubocop: enable CodeReuse/ActiveRecord
2017-09-25 12:54:08 -04:00
end