2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-25 12:54:08 -04:00
|
|
|
class BuildTraceSectionsWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2017-09-25 12:54:08 -04:00
|
|
|
include PipelineQueue
|
|
|
|
|
2018-08-27 11:31:01 -04:00
|
|
|
# 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
|
2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|
2017-09-25 12:54:08 -04:00
|
|
|
end
|