nixos/gitlab: switch from sidekiq to sidekiq-cluster

This commit is contained in:
ajs124 2024-02-22 16:55:07 +01:00 committed by Yureka
parent c031ea4adc
commit 1bada61543

View file

@ -1439,6 +1439,8 @@ in {
nodejs
gnupg
"${cfg.packages.gitlab}/share/gitlab/vendor/gems/sidekiq-${cfg.packages.gitlab.rubyEnv.gems.sidekiq.version}"
# Needed for GitLab project imports
gnutar
gzip
@ -1452,7 +1454,12 @@ in {
TimeoutSec = "infinity";
Restart = "always";
WorkingDirectory = "${cfg.packages.gitlab}/share/gitlab";
ExecStart="${cfg.packages.gitlab.rubyEnv}/bin/sidekiq -C \"${cfg.packages.gitlab}/share/gitlab/config/sidekiq_queues.yml\" -e production";
ExecStart = utils.escapeSystemdExecArgs [
"${cfg.packages.gitlab}/share/gitlab/bin/sidekiq-cluster"
"-e" "production"
"-r" "."
"*" # all queue groups
];
};
};