diff options
author | Valery Sizov <valery@gitlab.com> | 2015-05-08 09:21:37 +0000 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-05-08 09:21:37 +0000 |
commit | 5b3450f9b4241feee5fa69f78366392015ab25f1 (patch) | |
tree | f81bacd86d992456979e95b1582b8f29cef456a1 | |
parent | 39fbc00e7f9c20750230c188ef228797917f696e (diff) | |
parent | b750ecf3054abfcbeee57c991dd17cfb679d58b1 (diff) | |
download | gitlab-ci-5b3450f9b4241feee5fa69f78366392015ab25f1.tar.gz |
Merge branch 'sidekiq_worker_fix' into 'master'
Added Sidekiq config...
I added a config file for Sidekiq for regulating the amount of threads.
See merge request !70
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | config/sidekiq.yml.example | 2 | ||||
-rwxr-xr-x | script/background_jobs | 3 |
3 files changed, 7 insertions, 1 deletions
@@ -14,6 +14,9 @@ v7.11.0 v7.10.1 - Fix failing migration when update to 7.10 from 7.8 and older versions +sidekiq_wirker_fix + - added sidekiq.yml + - integrated in script/background_jobs v7.10.0 - Projects sorting by last commit date - Add project search at runner page diff --git a/config/sidekiq.yml.example b/config/sidekiq.yml.example new file mode 100644 index 0000000..c691db6 --- /dev/null +++ b/config/sidekiq.yml.example @@ -0,0 +1,2 @@ +-- +:concurrency: 5
\ No newline at end of file diff --git a/script/background_jobs b/script/background_jobs index 4c88809..49d0b49 100755 --- a/script/background_jobs +++ b/script/background_jobs @@ -4,6 +4,7 @@ cd $(dirname $0)/.. app_root=$(pwd) sidekiq_pidfile="$app_root/tmp/pids/sidekiq.pid" sidekiq_logfile="$app_root/log/sidekiq.log" +sidekiq_config="$app_root/config/sidekiq.yml" gitlab_ci_user=$(ls -l config.ru | awk '{print $3}') function stop @@ -27,7 +28,7 @@ function restart function start_sidekiq { - bundle exec sidekiq -q runner,common,default -e $RAILS_ENV -P $sidekiq_pidfile -d -L $sidekiq_logfile >> $sidekiq_logfile 2>&1 + bundle exec sidekiq -q runner,common,default -e $RAILS_ENV -P $sidekiq_pidfile -d -L $sidekiq_logfile -C $sidekiq_config >> $sidekiq_logfile 2>&1 } case "$1" in |