diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-08 18:12:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-08 18:12:29 +0300 |
commit | f8c7f38d02ebf964cbf40d9445f0f9f843710701 (patch) | |
tree | 755d5c384a0f64ffc8aad26f4628844697499522 /lib/gitlab/workhorse.rb | |
parent | 8fea353b907d1fd571f5450a757cafee73cfbfd0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r-- | lib/gitlab/workhorse.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index e81670ce89a..62f3e61c134 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -218,6 +218,11 @@ module Gitlab result = redis.set(key, value, ex: expire, nx: !overwrite) if result redis.publish(NOTIFICATION_CHANNEL, "#{key}=#{value}") + + if Feature.enabled?(:workhorse_long_polling_publish_many) + redis.publish("#{NOTIFICATION_CHANNEL}:#{key}", value) + end + value else redis.get(key) |