scheduling ending soon notification

pull/1/head
Andromeda Yelton 2012-11-21 11:09:18 -05:00
parent c4f32b38b5
commit 84e13a42bf
2 changed files with 7 additions and 0 deletions

View File

@ -275,6 +275,12 @@ EBOOK_NOTIFICATIONS_JOB = {
"args": ()
}
NOTIFY_ENDING_SOON_JOB = {
"task": "regluit.core.tasks.notify_ending_soon",
"schedule": crontab(hour=1, minute=0),
"args": ()
}
# by default, in common, we don't turn any of the celerybeat jobs on -- turn them on in the local settings file
# amazon or paypal for now.

View File

@ -138,6 +138,7 @@ CKEDITOR_UPLOAD_PATH = '/var/www/static/media/'
# update the statuses of campaigns
CELERYBEAT_SCHEDULE['update_active_campaign_statuses'] = UPDATE_ACTIVE_CAMPAIGN_STATUSES
CELERYBEAT_SCHEDULE['report_new_ebooks'] = EBOOK_NOTIFICATIONS_JOB
CELERYBEAT_SCHEDULE['notify_ending_soon'] = NOTIFY_ENDING_SOON_JOB
# set -- sandbox or production Amazon FPS?
#AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"