Apply locks to the owner-sync cronjob.

This commit is contained in:
Ralph Bean 2017-08-10 14:23:51 +00:00
parent 043420c436
commit a73e9d7b62

View file

@ -146,7 +146,7 @@
- name: sync packages from pagure-on-dist-git to koji (el6)
cron: name="owner-sync-el6" minute="7,17,27,37,47,57" user="root"
job="/usr/local/bin/owner-sync-pagure dist-6E-epel"
job="/usr/local/bin/lock-wrapper owner-sync-el6 /usr/local/bin/owner-sync-pagure dist-6E-epel"
cron_file=update-koji-owner-EL-6
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
@ -155,7 +155,7 @@
- name: sync packages from pagure-on-dist-git to koji (epel7)
cron: name="owner-sync-epel7" minute="7,17,27,37,47,57" user="root"
job="/usr/local/bin/owner-sync-pagure epel7"
job="/usr/local/bin/lock-wrapper owner-sync-epel7 /usr/local/bin/owner-sync-pagure epel7"
cron_file=update-koji-owner-epel7
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
@ -164,7 +164,7 @@
- name: sync packages from pagure-on-dist-git to koji fedora
cron: name="owner-sync-fedora" minute="7,17,27,37,47,57" user="root"
job="/usr/local/bin/owner-sync-pagure f25;/usr/local/bin/owner-sync-pagure f26;/usr/local/bin/owner-sync-pagure f27"
job="/usr/local/bin/lock-wrapper owner-sync-fedora /usr/local/bin/owner-sync-pagure f25;/usr/local/bin/owner-sync-pagure f26;/usr/local/bin/owner-sync-pagure f27"
cron_file=update-koji-owner-fedora
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
@ -172,8 +172,8 @@
- cron
- name: sync packages from pagure-on-dist-git to koji fedora (container)
cron: name="owner-sync-fedora" minute="7,17,27,37,47,57" user="root"
job="/usr/local/bin/owner-sync-pagure f25-container;/usr/local/bin/owner-sync-pagure f26-container;/usr/local/bin/owner-sync-pagure f27-container"
cron: name="owner-sync-fedora-container" minute="7,17,27,37,47,57" user="root"
job="/usr/local/bin/lock-wrapper owner-sync-fedora-container /usr/local/bin/owner-sync-pagure f25-container;/usr/local/bin/owner-sync-pagure f26-container;/usr/local/bin/owner-sync-pagure f27-container"
cron_file=update-koji-owner-fedora-container
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
@ -183,7 +183,7 @@
# See https://pagure.io/releng/issue/6663 and https://pagure.io/fm-orchestrator/issue/333
- name: sync packages from pagure-on-dist-git to koji fedora (modules)
cron: name="owner-sync-modules" minute="9,19,29,39,49,59" user="root"
job="/usr/local/bin/owner-sync-pagure module-package-list"
job="/usr/local/bin/lock-wrapper owner-sync-modules /usr/local/bin/owner-sync-pagure module-package-list"
cron_file=update-koji-owner-modules
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags: