2016-10-13 06:45:16 -04:00
|
|
|
class BuildHooksWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2017-08-21 08:16:51 -04:00
|
|
|
include PipelineQueue
|
|
|
|
|
2017-11-28 11:16:50 -05:00
|
|
|
queue_namespace :pipeline_hooks
|
2016-10-13 06:45:16 -04:00
|
|
|
|
|
|
|
def perform(build_id)
|
|
|
|
Ci::Build.find_by(id: build_id)
|
|
|
|
.try(:execute_hooks)
|
|
|
|
end
|
|
|
|
end
|