2016-12-14 10:06:50 -05:00
|
|
|
class BuildQueueWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
include BuildQueue
|
|
|
|
|
|
|
|
def perform(build_id)
|
|
|
|
Ci::Build.find_by(id: build_id).try do |build|
|
2016-12-20 22:27:03 -05:00
|
|
|
Ci::UpdateBuildQueueService.new.execute(build)
|
2016-12-14 10:06:50 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|