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:
authorKamil Trzciński <ayufan@ayufan.eu>2018-05-28 19:17:18 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-06-05 11:28:22 +0300
commit36fbe1422666cb5553ccde9e534bb2a504f0f2c1 (patch)
tree71ce34a44e20b4a84bae51ab6bf7a9729c2fc6f9 /app/models/ci
parent3571b97effd81f9a84f238f918544c6e5c625b76 (diff)
Do not validate cached data
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/runner.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 57edd6a4956..8c9aacca8de 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -219,10 +219,8 @@ module Ci
cache_attributes(values)
- if persist_cached_data?
- self.assign_attributes(values)
- self.save if self.changed?
- end
+ # We save data without validation, it will always change due to `contacted_at`
+ self.update_columns(values) if persist_cached_data?
end
def pick_build!(build)