mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
cleanup
This commit is contained in:
@@ -73,14 +73,10 @@ def delete_notifications_older_than_retention():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@notify_celery.task(name="delete-sms-notifications")
|
|
||||||
# @cronitor("delete-sms-notifications")
|
|
||||||
def delete_sms_notifications_older_than_retention():
|
def delete_sms_notifications_older_than_retention():
|
||||||
_delete_notifications_older_than_retention_by_type(NotificationType.SMS)
|
_delete_notifications_older_than_retention_by_type(NotificationType.SMS)
|
||||||
|
|
||||||
|
|
||||||
@notify_celery.task(name="delete-email-notifications")
|
|
||||||
# @cronitor("delete-email-notifications")
|
|
||||||
def delete_email_notifications_older_than_retention():
|
def delete_email_notifications_older_than_retention():
|
||||||
_delete_notifications_older_than_retention_by_type(NotificationType.EMAIL)
|
_delete_notifications_older_than_retention_by_type(NotificationType.EMAIL)
|
||||||
|
|
||||||
|
|||||||
@@ -316,16 +316,6 @@ class Config(object):
|
|||||||
"schedule": crontab(hour=8, minute=0),
|
"schedule": crontab(hour=8, minute=0),
|
||||||
"options": {"queue": QueueNames.PERIODIC},
|
"options": {"queue": QueueNames.PERIODIC},
|
||||||
},
|
},
|
||||||
"delete-sms-notifications": {
|
|
||||||
"task": "delete-sms-notifications",
|
|
||||||
"schedule": crontab(hour=8, minute=46),
|
|
||||||
"options": {"queue": QueueNames.PERIODIC},
|
|
||||||
},
|
|
||||||
"delete-email-notifications": {
|
|
||||||
"task": "delete-sms-notifications",
|
|
||||||
"schedule": crontab(hour=8, minute=17),
|
|
||||||
"options": {"queue": QueueNames.PERIODIC},
|
|
||||||
},
|
|
||||||
"check-for-services-with-high-failure-rates-or-sending-to-tv-numbers": {
|
"check-for-services-with-high-failure-rates-or-sending-to-tv-numbers": {
|
||||||
"task": "check-for-services-with-high-failure-rates-or-sending-to-tv-numbers",
|
"task": "check-for-services-with-high-failure-rates-or-sending-to-tv-numbers",
|
||||||
"schedule": crontab(day_of_week="mon-fri", hour=14, minute=30),
|
"schedule": crontab(day_of_week="mon-fri", hour=14, minute=30),
|
||||||
|
|||||||
Reference in New Issue
Block a user