From 189edf42ecccd6b2a38362f64919c02d121c672e Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Thu, 6 Apr 2017 11:26:18 +0000 Subject: [PATCH] britney: Move britney's start of day to 7 pm In preparation for running Britney 4 times a day and we wanting the 22:00 UTC run to do the aging. Signed-off-by: Niels Thykier --- britney2/policies/policy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 8f108e3..645a207 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -240,8 +240,8 @@ class AgePolicy(BasePolicy): if options.default_urgency not in mindays: # pragma: no cover raise ValueError("Missing age-requirement for default urgency (MINDAYS_%s)" % options.default_urgency) self._min_days_default = mindays[options.default_urgency] - # britney's "day" begins at 3pm - self._date_now = int(((time.time() / (60*60)) - 15) / 24) + # britney's "day" begins at 7pm (we want aging to occur in the 22:00Z run and we run Britney 2-4 times a day) + self._date_now = int(((time.time() / (60*60)) - 19) / 24) self._dates = {} self._urgencies = {}