import os from celery import Celery from celery.schedules import crontab os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.dev") app = Celery("evection") app.config_from_object("django.conf:settings", namespace="CELERY") app.autodiscover_tasks() # A single fixed-interval beat schedule drives all feed polling; per-feed # fetch_interval_minutes is plain model data evaluated inside poll_due_feeds, # not a separate beat entry per feed. app.conf.beat_schedule = { "poll-due-feeds": { "task": "apps.feeds.tasks.poll_due_feeds", "schedule": crontab(minute="*/1"), }, }