scheduling ending soon notification
parent
c4f32b38b5
commit
84e13a42bf
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue