From b851cc87d20681a3cc9852e5065861153759b385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Tue, 27 Feb 2024 09:34:38 +0100 Subject: [PATCH] MM: add a cronjob-specific timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../mirrormanager/templates/cron-crawler.yml | 2 ++ vars/apps/mirrormanager.yml | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/mirrormanager/templates/cron-crawler.yml b/roles/openshift-apps/mirrormanager/templates/cron-crawler.yml index 7c70cffdbf..e16317268c 100644 --- a/roles/openshift-apps/mirrormanager/templates/cron-crawler.yml +++ b/roles/openshift-apps/mirrormanager/templates/cron-crawler.yml @@ -26,6 +26,8 @@ spec: - "/opt/app-root/bin/mm2_crawler" - "--threads" - "{{ cronjob.threads }}" + - "--global-timeout" + - "{{ cronjob.timeout }}" - "--category" - "{{ cronjob.category }}" - "crawl" diff --git a/vars/apps/mirrormanager.yml b/vars/apps/mirrormanager.yml index e43ca118be..68c98db791 100644 --- a/vars/apps/mirrormanager.yml +++ b/vars/apps/mirrormanager.yml @@ -7,19 +7,25 @@ mm2_checkin: false mirrormanager_cron_crawler: - category: "Fedora Linux" schedule: "0 */12 * * *" - threads: 20 + threads: 40 + timeout: 600 - category: "Fedora Secondary Arches" schedule: "0 3,9 * * *" threads: 10 + timeout: 300 - category: "Fedora EPEL" schedule: "45 */6 * * *" threads: 20 + timeout: 300 - category: "Fedora Archive" schedule: "0 2 * * *" threads: 10 + timeout: 600 - category: "Fedora Other" schedule: "0 14 * * *" - threads: 10 + threads: 20 + timeout: 600 - category: "CentOS" schedule: "0 5,11 * * *" threads: 20 + timeout: 300