2016-10-13 06:45:16 -04:00
|
|
|
class BuildHooksWorker
|
|
|
|
include Sidekiq::Worker
|
2017-08-21 08:16:51 -04:00
|
|
|
include PipelineQueue
|
|
|
|
|
|
|
|
enqueue_in group: :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
|