Update switch provider on slow delivery task to change max once evey 10 minutes

This commit is contained in:
Pea Tyczynska
2018-12-05 14:40:07 +00:00
parent 39ca5b9525
commit 418060fbdb
4 changed files with 36 additions and 139 deletions

View File

@@ -459,7 +459,6 @@ def is_delivery_slow_for_provider(
Notification.key_type != KEY_TYPE_TEST
).group_by("slow").all()
print(count)
counts = {c[0]: c[1] for c in count}
total_notifications = sum(counts.values())
if total_notifications: