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
=== modified file 'turku_api/models.py'
--- turku_api/models.py 2015-07-30 22:41:42 +0000
+++ turku_api/models.py 2017-05-30 15:56:50 +0000
@@ -290,7 +290,7 @@
290 return True290 return True
291 if not self.success:291 if not self.success:
292 return False292 return False
293 return (now <= (self.date_next_backup + timedelta(hours=4)))293 return (now <= (self.date_next_backup + timedelta(hours=10)))
294 healthy.boolean = True294 healthy.boolean = True
295295
296 SNAPSHOT_MODES = (296 SNAPSHOT_MODES = (

Subscribers

People subscribed via source and target branches

to all changes: