Block concurrent pipeline processings

This commit is contained in:
Kamil Trzcinski 2016-08-29 16:47:31 +02:00
parent ee61c4037e
commit fd4efde5aa
2 changed files with 9 additions and 9 deletions

View file

@ -54,13 +54,11 @@ v 8.12.0 (unreleased)
v 8.11.4 (unreleased) v 8.11.4 (unreleased)
- Fix broken gitlab:backup:restore because of bad permissions on repo storage !6098 (Dirk Hörner) - Fix broken gitlab:backup:restore because of bad permissions on repo storage !6098 (Dirk Hörner)
- Creating an issue through our API now emails label subscribers !5720 - Creating an issue through our API now emails label subscribers !5720
- Block concurrent updates for Pipeline
- Fix resolving conflicts on forks - Fix resolving conflicts on forks
- Fix diff commenting on merge requests created prior to 8.10 - Fix diff commenting on merge requests created prior to 8.10
v 8.11.4 (unreleased)
- Fix issue boards leak private label names and descriptions - Fix issue boards leak private label names and descriptions
v 8.11.3 (unreleased)
v 8.11.3 v 8.11.3
- Do not enforce using hash with hidden key in CI configuration. !6079 - Do not enforce using hash with hidden key in CI configuration. !6079
- Allow system info page to handle case where info is unavailable - Allow system info page to handle case where info is unavailable

View file

@ -10,13 +10,15 @@ module Ci
create_builds! create_builds!
end end
new_builds = @pipeline.with_lock do
stage_indexes_of_created_builds.map do |index| new_builds =
process_stage(index) stage_indexes_of_created_builds.map do |index|
end process_stage(index)
end
# Return a flag if a when builds got enqueued # Return a flag if a when builds got enqueued
new_builds.flatten.any? new_builds.flatten.any?
end
end end
private private