summaryrefslogtreecommitdiff
path: root/app/models/ci/build.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-04-17 15:51:53 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2018-04-17 15:51:53 +0200
commit33de33198560844a32e4ed60f9f6476b7c6aa6aa (patch)
tree3b9abf933cabfa1d037b441a415c71a51bc33d52 /app/models/ci/build.rb
parentfe9c9ad2fe1f175ec62cc4645de4bcc2f2a9693c (diff)
downloadgitlab-ce-33de33198560844a32e4ed60f9f6476b7c6aa6aa.tar.gz
Move Ci::BuildMetadata#update_timeout_state to after_transition callback
Diffstat (limited to 'app/models/ci/build.rb')
-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