Add task to delete inbound sms everyday at 1am

This commit is contained in:
Imdad Ahad
2017-06-02 14:28:52 +01:00
parent 0631b6c988
commit 56c3f3cf7c
3 changed files with 46 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ from datetime import timedelta
from celery.schedules import crontab
from kombu import Exchange, Queue
import os
from app.models import KEY_TYPE_NORMAL, KEY_TYPE_TEAM, KEY_TYPE_TEST
if os.environ.get('VCAP_SERVICES'):
@@ -168,6 +169,11 @@ class Config(object):
'schedule': crontab(minute=40, hour=0),
'options': {'queue': QueueNames.PERIODIC}
},
'delete-inbound-sms': {
'task': 'delete-inbound-sms',
'schedule': crontab(minute=0, hour=1),
'options': {'queue': QueueNames.PERIODIC}
},
'send-daily-performance-platform-stats': {
'task': 'send-daily-performance-platform-stats',
'schedule': crontab(minute=0, hour=2),