Run smart-reconfigure instead of HUP
We don't want to HUP all the processes in the container, we just want zuul to reconfigure. Use the smart-reconfigure command. Also - start the scheduler in the gate job. Change-Id: I66754ed168165d2444930ab1110e95316f7307a7
This commit is contained in:
parent
1febd9a0f2
commit
5d1f556c2e
@ -1,4 +1,6 @@
|
||||
- name: Reload Zuul Scheduler
|
||||
shell:
|
||||
cmd: docker-compose kill -s HUP scheduler
|
||||
cmd: docker-compose exec -T scheduler zuul-scheduler smart-reconfigure
|
||||
chdir: /etc/zuul-scheduler
|
||||
# Don't run a restart if we're starting zuul with the playbook
|
||||
when: not zuul_scheduler_start|bool
|
||||
|
@ -68,6 +68,6 @@
|
||||
cmd: docker-compose pull
|
||||
chdir: /etc/zuul-scheduler
|
||||
|
||||
- name: Run docker prune to cleanup unneeded images
|
||||
shell:
|
||||
cmd: docker image prune -f
|
||||
- name: Start containers
|
||||
include_tasks: start.yaml
|
||||
when: zuul_scheduler_start | bool
|
||||
|
9
playbooks/roles/zuul-scheduler/tasks/start.yaml
Normal file
9
playbooks/roles/zuul-scheduler/tasks/start.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
- name: Run docker-compose up
|
||||
shell:
|
||||
cmd: docker-compose up -d
|
||||
chdir: /etc/zuul-scheduler
|
||||
|
||||
# TODO: put this in a handler
|
||||
- name: Run docker prune to cleanup unneeded images
|
||||
shell:
|
||||
cmd: docker image prune -f
|
@ -1,3 +1,5 @@
|
||||
zuul_scheduler_start: true
|
||||
|
||||
gearman_server_ssl_key: |
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIJKAIBAAKCAgEAsma7rv193P35/Wg1Um3ARP66iLWc3Z3ZLAM6LVbr4AXo0Eww
|
||||
|
Loading…
Reference in New Issue
Block a user