Implement email notifications

This commit is contained in:
rubenwardy
2020-12-05 19:15:33 +00:00
parent 19308b645b
commit 9c10e190bc
6 changed files with 71 additions and 5 deletions

View File

@@ -71,6 +71,10 @@ CELERYBEAT_SCHEDULE = {
'package_score_update': {
'task': 'app.tasks.pkgtasks.updatePackageScores',
'schedule': crontab(minute=10, hour=1),
},
'send_pending_notifications': {
'task': 'app.tasks.emails.sendPendingNotifications',
'schedule': crontab(minute='*/5'),
}
}
celery.conf.beat_schedule = CELERYBEAT_SCHEDULE