Internal
Public Access
Features: - Django-based REST API with web interface - Task management with tags, priorities, and due dates - Time tracking with start/stop timers - Subtasks support - Task filtering (all, today, upcoming, overdue, completed) - Tag-based organization with color coding - Sorting by due date and priority - Auto-assign tags when filtering - Responsive 3-pane layout (sidebar, task list, detail panel) - Task sharing between users - Mobile-responsive design with dark mode support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
36 lines
902 B
Python
36 lines
902 B
Python
"""
|
|
Celery configuration for KeepItGoing.
|
|
"""
|
|
|
|
import os
|
|
from celery import Celery
|
|
from celery.schedules import crontab
|
|
|
|
# Set the default Django settings module
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
|
|
|
|
app = Celery('keepitgoing')
|
|
|
|
# Load config from Django settings
|
|
app.config_from_object('django.conf:settings', namespace='CELERY')
|
|
|
|
# Auto-discover tasks in all installed apps
|
|
app.autodiscover_tasks()
|
|
|
|
# Celery Beat schedule for periodic tasks
|
|
app.conf.beat_schedule = {
|
|
'send-due-reminders': {
|
|
'task': 'notifications.tasks.send_due_reminders',
|
|
'schedule': crontab(minute='*/5'), # Every 5 minutes
|
|
},
|
|
'check-overdue-tasks': {
|
|
'task': 'notifications.tasks.check_overdue_tasks',
|
|
'schedule': crontab(hour=8, minute=0), # Daily at 8 AM
|
|
},
|
|
}
|
|
|
|
|
|
@app.task(bind=True)
|
|
def debug_task(self):
|
|
print(f'Request: {self.request!r}')
|