Skip to content

Commit 1297355

Browse files
committed
Add timeouts to scheduled jobs
To protect them from getting stuck. Change-Id: I5aab432dd74494fe0ffd2fd2094abb03ac48a0af
1 parent 78202fd commit 1297355

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

jobs.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,51 @@
44
filelog-stdout: logs/t1-enwiki.out
55
image: python3.9
66
name: t1-enwiki
7-
- command: /data/project/majavah-bot/tjf-entrypoint.sh task 2 --run
7+
- command: timeout 3h /data/project/majavah-bot/tjf-entrypoint.sh task 2 --run
88
filelog-stderr: logs/t2-fiwiki.err
99
filelog-stdout: logs/t2-fiwiki.out
1010
image: python3.9
1111
name: t2-fiwiki
1212
schedule: 50 06 * * *
13-
- command: /data/project/majavah-bot/tjf-entrypoint.sh task 3 --run
13+
- command: timeout 3h /data/project/majavah-bot/tjf-entrypoint.sh task 3 --run
1414
emails: all
1515
filelog-stderr: logs/t3-enwiki.err
1616
filelog-stdout: logs/t3-enwiki.out
1717
image: python3.9
1818
name: t3-enwiki
1919
schedule: 25 16 * * *
20-
- command: /data/project/majavah-bot/run-archivebot.sh q/sq
20+
- command: timeout 3h /data/project/majavah-bot/run-archivebot.sh q/sq
2121
filelog-stderr: logs/t4-sqquote.err
2222
filelog-stdout: logs/t4-sqquote.out
2323
image: python3.9
2424
name: t4-sqquote
2525
schedule: 16 03 * * *
26-
- command: /data/project/majavah-bot/run-archivebot.sh w/sq
26+
- command: timeout 3h /data/project/majavah-bot/run-archivebot.sh w/sq
2727
filelog-stderr: logs/t4-sqwiki.err
2828
filelog-stdout: logs/t4-sqwiki.out
2929
image: python3.9
3030
name: t4-sqwiki
3131
schedule: 16 04 * * *
32-
- command: /data/project/majavah-bot/tjf-entrypoint.sh task 4 --param autosetup --run
32+
- command: timeout 3h /data/project/majavah-bot/tjf-entrypoint.sh task 4 --param autosetup --run
3333
filelog-stderr: logs/t4-sqwiki-autosetup.err
3434
filelog-stdout: logs/t4-sqwiki-autosetup.out
3535
image: python3.9
3636
name: t4-sqwiki-autosetup
3737
schedule: 16 02 * * *
38-
- command: /data/project/majavah-bot/tjf-entrypoint.sh task 5 --run
38+
- command: timeout 25m /data/project/majavah-bot/tjf-entrypoint.sh task 5 --run
3939
emails: onfailure
4040
filelog-stderr: logs/t5-meta.err
4141
filelog-stdout: logs/t5-meta.out
4242
image: python3.9
4343
name: t5-meta
4444
schedule: 5,25,45 * * * *
45-
- command: /data/project/majavah-bot/tjf-entrypoint.sh task 7 --run
45+
- command: timeout 3h /data/project/majavah-bot/tjf-entrypoint.sh task 7 --run
4646
filelog-stderr: logs/t7-meta.err
4747
filelog-stdout: logs/t7-meta.out
4848
image: python3.9
4949
name: t7-meta
5050
schedule: 57 17 * * *
51-
- command: /data/project/majavah-bot/tjf-entrypoint.sh task sync-tennis-stats --run
51+
- command: timeout 3h /data/project/majavah-bot/tjf-entrypoint.sh task sync-tennis-stats --run
5252
filelog-stderr: logs/sync-tennis-stats.err
5353
filelog-stdout: logs/sync-tennis-stats.out
5454
image: python3.9

0 commit comments

Comments
 (0)