Fix the time when the campaign status dated -- 12:01 am -- maybe it should be 12:00

pull/1/head
Raymond Yee 2012-06-29 18:22:19 -07:00
parent 5b733d214c
commit cf2847544b
2 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,7 @@ SEND_TEST_EMAIL_JOB = {
UPDATE_ACTIVE_CAMPAIGN_STATUSES = { UPDATE_ACTIVE_CAMPAIGN_STATUSES = {
"task": "regluit.core.tasks.update_active_campaign_status", "task": "regluit.core.tasks.update_active_campaign_status",
"schedule": crontab(hour=18, minute=5), "schedule": crontab(hour=0, minute=1),
"args": () "args": ()
} }

View File

@ -135,6 +135,8 @@ STATIC_ROOT = '/var/www/static'
# decide which of the period tasks to add to the schedule # decide which of the period tasks to add to the schedule
#CELERYBEAT_SCHEDULE['send_test_email'] = SEND_TEST_EMAIL_JOB #CELERYBEAT_SCHEDULE['send_test_email'] = SEND_TEST_EMAIL_JOB
#CELERYBEAT_SCHEDULE['emit_notifications'] = EMIT_NOTIFICATIONS_JOB #CELERYBEAT_SCHEDULE['emit_notifications'] = EMIT_NOTIFICATIONS_JOB
# 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['report_new_ebooks'] = EBOOK_NOTIFICATIONS_JOB
# set -- sandbox or production Amazon FPS? # set -- sandbox or production Amazon FPS?