From d7d21b095998db8a0a0e350c85d9477254fe8210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 24 Apr 2017 22:35:16 +0300 Subject: [PATCH] Pause before next report to avoid hitting sending quota --- hc/api/management/commands/sendreports.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hc/api/management/commands/sendreports.py b/hc/api/management/commands/sendreports.py index 0979909e..994cdee9 100644 --- a/hc/api/management/commands/sendreports.py +++ b/hc/api/management/commands/sendreports.py @@ -56,6 +56,8 @@ class Command(BaseCommand): self.stdout.write(self.tmpl % profile.user.email) profile.send_report() + # Pause before next report to avoid hitting sending quota + time.sleep(1) sent += 1 return sent