mirror of https://github.com/zulip/zulip.git
[puppet] Change digest email send time by 1 hour for daylight savings.
(imported from commit 8ac1747f15e10b850f73ce28ea4579bee62ba1a4)
This commit is contained in:
parent
e7c8c322c0
commit
1c06e37245
|
@ -50,7 +50,7 @@ now_struct = time.gmtime(now)
|
|||
# While we are sending digest emails, at 11am each weekday, the mail queues can
|
||||
# get backed up; don't alert on those.
|
||||
if not set(warn_queues) - set(("missedmessage_emails", "digest_emails")) and \
|
||||
now_struct.tm_hour == 16 and now_struct.tm_min < 25:
|
||||
now_struct.tm_hour == 15 and now_struct.tm_min < 25:
|
||||
status = 0
|
||||
print("%s|%s|%s|processing digests, not alerting on elevated mail queues" % (
|
||||
now, status, states[status]))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
MAILTO=root
|
||||
|
||||
# Send digest emails once a day. Time is in UTC.
|
||||
0 16 * * * zulip cd /home/zulip/deployments/current && python manage.py enqueue_digest_emails
|
||||
0 15 * * * zulip cd /home/zulip/deployments/current && python manage.py enqueue_digest_emails
|
||||
|
|
Loading…
Reference in New Issue