Browse Source

Pause before next report to avoid hitting sending quota

pull/114/merge 1.0.2
Pēteris Caune 8 years ago
parent
commit
d7d21b0959
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      hc/api/management/commands/sendreports.py

+ 2
- 0
hc/api/management/commands/sendreports.py View File

@ -56,6 +56,8 @@ class Command(BaseCommand):
self.stdout.write(self.tmpl % profile.user.email) self.stdout.write(self.tmpl % profile.user.email)
profile.send_report() profile.send_report()
# Pause before next report to avoid hitting sending quota
time.sleep(1)
sent += 1 sent += 1
return sent return sent


Loading…
Cancel
Save