[Fixed]-Adding periodic tasks in celery (django) inside an app

1👍

Another approach to centrally manage the periodic tasks could be to define a dict in the settings.

CELERY_BEAT_SCHEDULE = {
    'some name': {
        'task': 'myapp.tasks.do_something',
        'schedule':  crontab(hour=0, minute=0),
    }
}

Leave a comment