Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion coderdojochi/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@


class SendReminders(CronJobBase):
RUN_AT_TIMES = ['10:00', '14:00']
# Run cron every hour during the day so people get emails quickly
# but not in the middle of the night
RUN_AT_TIMES = ['09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00']
Comment thread
karbassi marked this conversation as resolved.
Outdated

schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'coderdojochi.send_reminders'
Expand Down
5 changes: 5 additions & 0 deletions coderdojochi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
'django_nose',
'meta',
'captcha',
'django_cron',

# apps
'accounts',
Expand All @@ -128,6 +129,10 @@
'coderdojochi.middleware.HandleExceptionMiddleware',
]

CRON_CLASSES = [
'coderdojochi.cron.SendReminders',
]

ROOT_URLCONF = 'coderdojochi.urls'

TEMPLATES = [
Expand Down