Skip to content

Commit 5071736

Browse files
authored
Merge pull request #2654 from codeenigma/Gitlab-stop-fix-PR-2.x
Gitlab-stop-fix
2 parents 52f245a + cf024e8 commit 5071736

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ce-dev/ansible/vars/gitlab/ce_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ce_deploy:
33
own_repository_branch: 1.x
44
username: deploy
55
local_dir: /home/deploy/ce-deploy
6-
ce_provision_dir: /home/ce-dev/ce-provision
6+
ce_provision_dir: /home/controller/ce-provision

roles/debian/gitlab/tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@
9393
mode: "0666"
9494
when: is_local
9595

96+
- name: Stop Sidekiq specifically first
97+
ansible.builtin.command:
98+
cmd: /opt/gitlab/bin/gitlab-ctl stop sidekiq
99+
register: _sidekiq_stop
100+
failed_when: false
101+
async: 180
102+
poll: 5
103+
104+
- name: Force stop Sidekiq if it's stuck.
105+
ansible.builtin.command:
106+
cmd: /opt/gitlab/bin/gitlab-ctl kill sidekiq
107+
when: _sidekiq_stop is failed
108+
96109
- name: Stop Gitlab.
97110
ansible.builtin.command: /opt/gitlab/bin/gitlab-ctl stop
98111
when: gitlab.force_stop

0 commit comments

Comments
 (0)