Cronjob not running on django with celery

I am trying to run a periodic task using celery and django

from celery.schedule import crontab
app.conf.beat_schedule = {
    'compute-every-minute-mon-through-friday-9-to-5': {
         'task': 'sum',
         'schedule': crontab(minute='*/1',
hour='9-17', day_of_week='mon,tue,wed,thu,fri'),
     },
  }

However, the task does not run at all. Is there a command to activate my cronjob?

Back to Top