diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 6b4fb0fa794..544559607a1 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -137,7 +137,7 @@ module Ci end def mark_as_processable_after_stage(stage_idx) - builds.skipped.where('stage_idx > ?', stage_idx).each(&:process) + builds.skipped.where('stage_idx > ?', stage_idx).find_each(&:process) end def latest?