Merge branch 'sh-init-sidekiq-queues' into 'master'
Initialize Sidekiq with the list of queues used by GitLab See merge request !7217
This commit is contained in:
commit
56e6f95479
2 changed files with 17 additions and 0 deletions
|
@ -41,6 +41,7 @@ Please view this file on the master branch, on stable branches it's out of date.
|
||||||
- Fix Sign in page 'Forgot your password?' link overlaps on medium-large screens
|
- Fix Sign in page 'Forgot your password?' link overlaps on medium-large screens
|
||||||
- Show full status link on MR & commit pipelines
|
- Show full status link on MR & commit pipelines
|
||||||
- Fix documents and comments on Build API `scope`
|
- Fix documents and comments on Build API `scope`
|
||||||
|
- Initialize Sidekiq with the list of queues used by GitLab
|
||||||
- Refactor email, use setter method instead AR callbacks for email attribute (Semyon Pupkov)
|
- Refactor email, use setter method instead AR callbacks for email attribute (Semyon Pupkov)
|
||||||
- Shortened merge request modal to let clipboard button not overlap
|
- Shortened merge request modal to let clipboard button not overlap
|
||||||
- In all filterable drop downs, put input field in focus only after load is complete (Ido @leibo)
|
- In all filterable drop downs, put input field in focus only after load is complete (Ido @leibo)
|
||||||
|
|
|
@ -42,3 +42,19 @@ end
|
||||||
Sidekiq.configure_client do |config|
|
Sidekiq.configure_client do |config|
|
||||||
config.redis = redis_config_hash
|
config.redis = redis_config_hash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The Sidekiq client API always adds the queue to the Sidekiq queue
|
||||||
|
# list, but mail_room and gitlab-shell do not. This is only necessary
|
||||||
|
# for monitoring.
|
||||||
|
config = YAML.load_file(Rails.root.join('config', 'sidekiq_queues.yml').to_s)
|
||||||
|
|
||||||
|
begin
|
||||||
|
Sidekiq.redis do |conn|
|
||||||
|
conn.pipelined do
|
||||||
|
config[:queues].each do |queue|
|
||||||
|
conn.sadd('queues', queue[0])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
rescue Redis::BaseError, SocketError
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue