diff --git a/flowspec/tasks.py b/flowspec/tasks.py index e2ce3f72601cd38772f436c3c1293aa38ff11709..52cb4370f67282e5b37169b1816a7cd6fb55b6db 100644 --- a/flowspec/tasks.py +++ b/flowspec/tasks.py @@ -310,7 +310,7 @@ def notify_expired(): logger.info('Initializing expiration notification') routes = Route.objects.all() for route in routes: - if route.status not in ['EXPIRED', 'ADMININACTIVE', 'INACTIVE', 'INACTIVE_TODELETE', 'PENDING_TODELETE', 'ERROR']: + if route.status not in ['EXPIRED', 'ADMININACTIVE', 'INACTIVE', 'INACTIVE_TODELETE', 'PENDING_TODELETE', 'ERROR', 'OUTOFSYNC']: expiration_days = (route.expires - datetime.date.today()).days if expiration_days < settings.EXPIRATION_NOTIFY_DAYS: try: