# `django_celery_beat.schedulers`

Beat Scheduler Implementation.

class django_celery_beat.schedulers.DatabaseScheduler(*args, **kwargs)

  Database-backed Beat Scheduler.

  Changes

    alias of `PeriodicTasks`

  Entry

    alias of `ModelEntry`

  Model

    alias of `PeriodicTask`

  __init__(*args, **kwargs)

    Initialize the database scheduler.

  all_as_schedule()
  enabled_models()

    Return list of enabled periodic tasks.

    Allows overriding how the list of periodic tasks is fetched without duplicating the filtering/querying logic.

  enabled_models_qs()
  install_default_entries(data)
  reserve(entry)
  property schedule
  schedule_changed()
  schedules_equal(*args, **kwargs)
  setup_schedule()
  sync()
  update_from_dict(mapping)

class django_celery_beat.schedulers.ModelEntry(model, app=None)

  Scheduler entry taken from database row.

  __init__(model, app=None)

    Initialize the model entry.

  classmethod from_entry(name, app=None, **entry)
  is_due()

    See `is_due()`.

  model_schedules = ((<class 'celery.schedules.crontab'>, <class 'django_celery_beat.models.CrontabSchedule'>, 'crontab'), (<class 'celery.schedules.schedule'>, <class 'django_celery_beat.models.IntervalSchedule'>, 'interval'), (<class 'celery.schedules.solar'>, <class 'django_celery_beat.models.SolarSchedule'>, 'solar'), (<class 'django_celery_beat.clockedschedule.clocked'>, <class 'django_celery_beat.models.ClockedSchedule'>, 'clocked'))
  next()

    Return new instance, with date and count fields updated.

  save()
  save_fields = ['last_run_at', 'total_run_count', 'no_changes']
  classmethod to_model_schedule(schedule)