Start a sidekiq cluster instead of standalone

This commit is contained in:
Pirate Praveen 2023-03-08 18:50:47 +05:30
parent f36950b341
commit 03530721b4
No known key found for this signature in database
GPG key ID: 8F53E0193B294B75

View file

@ -11,12 +11,11 @@ ReloadPropagatedFrom=gitlab.service
Type=simple
WorkingDirectory=/usr/share/gitlab
EnvironmentFile=/etc/gitlab/gitlab-debian.conf
Environment=SIDEKIQ_QUEUES=*
SyslogIdentifier=gitlab-sidekiq
ExecStartPre=truncate -s 0 Gemfile.lock
ExecStartPre=/usr/bin/bundle install --local --quiet
ExecStart=/usr/bin/bundle exec sidekiq \
-C /etc/gitlab/sidekiq_queues.yml \
-e $RAILS_ENV
ExecStart=/usr/bin/bundle exec bin/sidekiq-cluster $SIDEKIQ_QUEUES -e $RAILS_ENV
Restart=on-abnormal
## No "Type=notify" support; wait for service to initialise: