Added crontab tasks
This commit is contained in:
@@ -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'),
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user