diff --git a/app/celery/scheduled_tasks.py b/app/celery/scheduled_tasks.py index f8b966e84..04a476378 100644 --- a/app/celery/scheduled_tasks.py +++ b/app/celery/scheduled_tasks.py @@ -106,7 +106,7 @@ def switch_current_sms_provider_on_slow_delivery(): return slow_delivery_notifications = is_delivery_slow_for_provider( provider=current_provider.identifier, - threshold=0.1, + threshold=0.2, created_at=datetime.utcnow() - timedelta(minutes=10), delivery_time=timedelta(minutes=4), ) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index d693bde25..722f03165 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -494,8 +494,8 @@ def is_delivery_slow_for_provider( slow_notifications = counts.get(True, 0) if total_notifications: - current_app.logger.info("Slow delivery notifications count: {} out of {}. Ratio {}".format( - slow_notifications, total_notifications, slow_notifications / total_notifications + current_app.logger.info("Slow delivery notifications count for provider {}: {} out of {}. Ratio {}".format( + provider, slow_notifications, total_notifications, slow_notifications / total_notifications )) return slow_notifications / total_notifications >= threshold else: