summaryrefslogtreecommitdiff
path: root/workhorse/main.go
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-08 15:12:29 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-08 15:12:29 +0000
commitf8c7f38d02ebf964cbf40d9445f0f9f843710701 (patch)
tree755d5c384a0f64ffc8aad26f4628844697499522 /workhorse/main.go
parent8fea353b907d1fd571f5450a757cafee73cfbfd0 (diff)
downloadgitlab-ce-f8c7f38d02ebf964cbf40d9445f0f9f843710701.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/main.go')
-rw-r--r--workhorse/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/workhorse/main.go b/workhorse/main.go
index b0f9760b0d5..027575747f4 100644
--- a/workhorse/main.go
+++ b/workhorse/main.go
@@ -220,7 +220,9 @@ func run(boot bootConfig, cfg config.Config) error {
secret.SetPath(boot.secretPath)
- keyWatcher := redis.NewKeyWatcher()
+ keyWatcher := redis.NewKeyWatcher(
+ os.Getenv("GITLAB_WORKHORSE_REDIS_SUBSCRIBE_MANY") == "1",
+ )
if cfg.Redis != nil {
redis.Configure(cfg.Redis, redis.DefaultDialFunc)
go keyWatcher.Process()