MM: add a cronjob-specific timeout
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
5439baec1b
commit
b851cc87d2
2 changed files with 10 additions and 2 deletions
|
@ -26,6 +26,8 @@ spec:
|
||||||
- "/opt/app-root/bin/mm2_crawler"
|
- "/opt/app-root/bin/mm2_crawler"
|
||||||
- "--threads"
|
- "--threads"
|
||||||
- "{{ cronjob.threads }}"
|
- "{{ cronjob.threads }}"
|
||||||
|
- "--global-timeout"
|
||||||
|
- "{{ cronjob.timeout }}"
|
||||||
- "--category"
|
- "--category"
|
||||||
- "{{ cronjob.category }}"
|
- "{{ cronjob.category }}"
|
||||||
- "crawl"
|
- "crawl"
|
||||||
|
|
|
@ -7,19 +7,25 @@ mm2_checkin: false
|
||||||
mirrormanager_cron_crawler:
|
mirrormanager_cron_crawler:
|
||||||
- category: "Fedora Linux"
|
- category: "Fedora Linux"
|
||||||
schedule: "0 */12 * * *"
|
schedule: "0 */12 * * *"
|
||||||
threads: 20
|
threads: 40
|
||||||
|
timeout: 600
|
||||||
- category: "Fedora Secondary Arches"
|
- category: "Fedora Secondary Arches"
|
||||||
schedule: "0 3,9 * * *"
|
schedule: "0 3,9 * * *"
|
||||||
threads: 10
|
threads: 10
|
||||||
|
timeout: 300
|
||||||
- category: "Fedora EPEL"
|
- category: "Fedora EPEL"
|
||||||
schedule: "45 */6 * * *"
|
schedule: "45 */6 * * *"
|
||||||
threads: 20
|
threads: 20
|
||||||
|
timeout: 300
|
||||||
- category: "Fedora Archive"
|
- category: "Fedora Archive"
|
||||||
schedule: "0 2 * * *"
|
schedule: "0 2 * * *"
|
||||||
threads: 10
|
threads: 10
|
||||||
|
timeout: 600
|
||||||
- category: "Fedora Other"
|
- category: "Fedora Other"
|
||||||
schedule: "0 14 * * *"
|
schedule: "0 14 * * *"
|
||||||
threads: 10
|
threads: 20
|
||||||
|
timeout: 600
|
||||||
- category: "CentOS"
|
- category: "CentOS"
|
||||||
schedule: "0 5,11 * * *"
|
schedule: "0 5,11 * * *"
|
||||||
threads: 20
|
threads: 20
|
||||||
|
timeout: 300
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue