Merge lp:~sajoupa/turku/turku-api-bump-backup-max-time-to-10h into lp:turku/turku-api

Proposed by Laurent Sesquès
Status: Merged
Merged at revision: 56
Proposed branch: lp:~sajoupa/turku/turku-api-bump-backup-max-time-to-10h
Merge into: lp:turku/turku-api
Diff against target: 12 lines (+1/-1)
1 file modified
turku_api/models.py (+1/-1)
To merge this branch: bzr merge lp:~sajoupa/turku/turku-api-bump-backup-max-time-to-10h

Description of the change

Some backups take more than 9h, and are reported as unhealthy 4h after the backup started, until it's completed.
This change bumps the threshold to 10h.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'turku_api/models.py'
2--- turku_api/models.py 2015-07-30 22:41:42 +0000
3+++ turku_api/models.py 2017-05-30 15:56:50 +0000
4@@ -290,7 +290,7 @@
5 return True
6 if not self.success:
7 return False
8- return (now <= (self.date_next_backup + timedelta(hours=4)))
9+ return (now <= (self.date_next_backup + timedelta(hours=10)))
10 healthy.boolean = True
11
12 SNAPSHOT_MODES = (

Subscribers

People subscribed via source and target branches

to all changes: