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

Proposed by Laurent Sesquès
Status: Merged
Merged at revision: 57
Proposed branch: lp:~sajoupa/turku/turku-api-bump-backup-max-time-to-10h-update-checkin-check-too
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-update-checkin-check-too

Description of the change

we must also allow 10h since last machine check-in to avoid flagging machines with long backups as unhealthy

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 2017-05-30 15:45:49 +0000
3+++ turku_api/models.py 2017-06-06 15:30:05 +0000
4@@ -211,7 +211,7 @@
5 return True
6 if not self.date_checked_in:
7 return False
8- return (now <= (self.date_checked_in + timedelta(hours=4)))
9+ return (now <= (self.date_checked_in + timedelta(hours=10)))
10 healthy.boolean = True
11
12 id = UuidPrimaryKeyField()

Subscribers

People subscribed via source and target branches

to all changes: