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: I66754ed168165d2444930ab1110e95316f7307a7changes/07/723107/5
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
|
||||
|
@ -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
|
Loading…
Reference in new issue