MM: add a cronjob-specific timeout

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-02-27 09:34:38 +01:00
parent 5439baec1b
commit b851cc87d2
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 10 additions and 2 deletions

View file

@ -26,6 +26,8 @@ spec:
- "/opt/app-root/bin/mm2_crawler"
- "--threads"
- "{{ cronjob.threads }}"
- "--global-timeout"
- "{{ cronjob.timeout }}"
- "--category"
- "{{ cronjob.category }}"
- "crawl"

View file

@ -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