Added crontab tasks

This commit is contained in:
John Mullins
2024-06-12 12:58:46 +10:00
parent f37827fd9d
commit 675962be91
2 changed files with 7 additions and 0 deletions
+7
View File
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/
"""
import os
from pathlib import Path
import platform
from dotenv import load_dotenv
@@ -45,6 +46,12 @@ INSTALLED_APPS = [
'rangefilter',
]
if platform.system() == "Linux":
INSTALLED_APPS.append('django_crontab')
CRONJOBS = [
('0 6 * * *', 'coord.scheduled_tasks.nightly_check_active_status')
]
TWILIO = {
"ACCOUNT_SID": os.environ.get('TWILIO_SID'),
"AUTH_TOKEN": os.environ.get('TWILIO_TOKEN'),
BIN
View File
Binary file not shown.