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:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-04-17 16:51:53 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2018-04-17 16:51:53 +0300
commit33de33198560844a32e4ed60f9f6476b7c6aa6aa (patch)
tree3b9abf933cabfa1d037b441a415c71a51bc33d52 /app/models
parentfe9c9ad2fe1f175ec62cc4645de4bcc2f2a9693c (diff)
Move Ci::BuildMetadata#update_timeout_state to after_transition callback
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 4aa65bf4273..3e3ef674dff 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -162,7 +162,7 @@ module Ci
build.validates_dependencies! unless Feature.enabled?('ci_disable_validates_dependencies')
end
- before_transition pending: :running do |build|
+ after_transition pending: :running do |build|
build.ensure_metadata.update_timeout_state
end
end