summaryrefslogtreecommitdiff
path: root/app/workers/reactive_caching_worker.rb
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-01-12 22:31:02 +0000
committerRobert Speicher <rspeicher@gmail.com>2017-01-12 17:39:46 -0500
commite75b1f11057829964dd9c3aac3b0a0deb964707e (patch)
treeabcc7f1ef7eb11896103a08f1969935cf0e4cfed /app/workers/reactive_caching_worker.rb
parentbf073583fba475382a927b8f35df6514d4bcb88f (diff)
downloadgitlab-ce-e75b1f11057829964dd9c3aac3b0a0deb964707e.tar.gz
Merge branch '24185-legacy-ci-status-reactive-cache' into 'security'
Use ReactiveCaching to update external CI status asynchronously See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2055
Diffstat (limited to 'app/workers/reactive_caching_worker.rb')
-rw-r--r--app/workers/reactive_caching_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/reactive_caching_worker.rb b/app/workers/reactive_caching_worker.rb
index 9af9dae04f0..18b8daf4e1e 100644
--- a/app/workers/reactive_caching_worker.rb
+++ b/app/workers/reactive_caching_worker.rb
@@ -2,7 +2,7 @@ class ReactiveCachingWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
- def perform(class_name, id)
+ def perform(class_name, id, *args)
klass = begin
Kernel.const_get(class_name)
rescue NameError
@@ -10,6 +10,6 @@ class ReactiveCachingWorker
end
return unless klass
- klass.find_by(id: id).try(:exclusively_update_reactive_cache!)
+ klass.find_by(id: id).try(:exclusively_update_reactive_cache!, *args)
end
end