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

13 lines
295 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-09-25 12:54:08 -04:00
class BuildTraceSectionsWorker
include ApplicationWorker
2017-09-25 12:54:08 -04:00
include PipelineQueue
# 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