systemd sidekiq service misses some queues
cultcom opened this issue · 0 comments
cultcom commented
since around 8.14 there is a config file defining the available queues for sidekiq to listen on.
please update the service file to run sidekiq like this:
diff --git a/init/systemd/gitlab-sidekiq.service b/init/systemd/gitlab-sidekiq.service
index 47cf3ee..759ff0a 100644
--- a/init/systemd/gitlab-sidekiq.service
+++ b/init/systemd/gitlab-sidekiq.service
@@ -20,7 +20,7 @@ Environment=RAILS_ENV=production
SyslogIdentifier=gitlab-sidekiq
PIDFile=/home/git/gitlab/tmp/pids/sidekiq.pid
-ExecStart=/usr/bin/bundle exec "sidekiq -d -q archive_repo -q post_receive -q mailers -q system_hook -q incoming_email -q project_web_hook -q gitlab_shell -q common -q default -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1"
+ExecStart=/usr/bin/bundle exec "sidekiq -d -C /home/git/gitlab/config/sidekiq_queues.yml -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1"
ExecStop=/usr/bin/bundle exec "sidekiqctl stop /home/git/gitlab/tmp/pids/sidekiq.pid >> /home/git/gitlab/log/sidekiq.log 2>&1"
[Install]
</code>