Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-09-21 05:17:37 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 18:02:11 +0300
commita7c767f16446f71f6e35a5aa3d2fdc73037fcdf5 (patch)
tree6f0f2a85f44d796a31ae0813e1ce6d5434bc8fda /app/workers/ci
parentaf51b95442aa867bd570b99d32f8b580f554675d (diff)
Add a new status to ci_builds.status
Diffstat (limited to 'app/workers/ci')
-rw-r--r--app/workers/ci/build_schedule_worker.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/workers/ci/build_schedule_worker.rb b/app/workers/ci/build_schedule_worker.rb
index 84ef2edb767..0d17a960c00 100644
--- a/app/workers/ci/build_schedule_worker.rb
+++ b/app/workers/ci/build_schedule_worker.rb
@@ -6,10 +6,9 @@ module Ci
include PipelineQueue
def perform(build_id)
- ::Ci::Build.preload(:build_schedule).find_by(id: build_id).try do |build|
+ ::Ci::Build.find_by(id: build_id).try do |build|
break unless build.scheduled?
- build.unschedule!
Ci::PlayBuildService.new(build.project, build.user).execute(build)
end
end