django_celery_beat.models

Database models.

class django_celery_beat.models.CrontabSchedule(*args, **kwargs)[source]

Crontab-like schedule.

exception DoesNotExist
exception CrontabSchedule.MultipleObjectsReturned
CrontabSchedule.day_of_month

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

CrontabSchedule.day_of_week

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

classmethod CrontabSchedule.from_schedule(schedule)[source]
CrontabSchedule.hour

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

CrontabSchedule.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

CrontabSchedule.minute

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

CrontabSchedule.month_of_year

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

CrontabSchedule.objects = <django.db.models.manager.Manager object>
CrontabSchedule.periodictask_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

CrontabSchedule.schedule
class django_celery_beat.models.IntervalSchedule(*args, **kwargs)[source]

Schedule executing every n seconds.

DAYS = u'days'
exception DoesNotExist
IntervalSchedule.HOURS = u'hours'
IntervalSchedule.MICROSECONDS = u'microseconds'
IntervalSchedule.MINUTES = u'minutes'
exception IntervalSchedule.MultipleObjectsReturned
IntervalSchedule.PERIOD_CHOICES = ((u'days', u'Days'), (u'hours', u'Hours'), (u'minutes', u'Minutes'), (u'seconds', u'Seconds'), (u'microseconds', u'Microseconds'))
IntervalSchedule.SECONDS = u'seconds'
IntervalSchedule.every

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

classmethod IntervalSchedule.from_schedule(schedule, period=u'seconds')[source]
IntervalSchedule.get_period_display(*moreargs, **morekwargs)
IntervalSchedule.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

IntervalSchedule.objects = <django.db.models.manager.Manager object>
IntervalSchedule.period

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

IntervalSchedule.period_singular
IntervalSchedule.periodictask_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

IntervalSchedule.schedule
class django_celery_beat.models.PeriodicTask(*args, **kwargs)[source]

Model representing a periodic task.

exception DoesNotExist
exception PeriodicTask.MultipleObjectsReturned
PeriodicTask.args

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.crontab

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

PeriodicTask.crontab_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.date_changed

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.description

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.enabled

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.exchange

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.expires

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.get_next_by_date_changed(*moreargs, **morekwargs)
PeriodicTask.get_previous_by_date_changed(*moreargs, **morekwargs)
PeriodicTask.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.interval

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

PeriodicTask.interval_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.kwargs

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.last_run_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.no_changes = False
PeriodicTask.objects = <django_celery_beat.managers.PeriodicTaskManager object>
PeriodicTask.queue

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.routing_key

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.save(*args, **kwargs)[source]
PeriodicTask.schedule
PeriodicTask.solar

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

PeriodicTask.solar_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.task

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.total_run_count

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTask.validate_unique(*args, **kwargs)[source]
class django_celery_beat.models.PeriodicTasks(*args, **kwargs)[source]

Helper table for tracking updates to periodic tasks.

exception DoesNotExist
exception PeriodicTasks.MultipleObjectsReturned
classmethod PeriodicTasks.changed(instance, **kwargs)[source]
PeriodicTasks.get_next_by_last_update(*moreargs, **morekwargs)
PeriodicTasks.get_previous_by_last_update(*moreargs, **morekwargs)
PeriodicTasks.ident

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

classmethod PeriodicTasks.last_change()[source]
PeriodicTasks.last_update

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

PeriodicTasks.objects = <django_celery_beat.managers.ExtendedManager object>
classmethod PeriodicTasks.update_changed(**kwargs)[source]
class django_celery_beat.models.SolarSchedule(*args, **kwargs)[source]

Schedule following astronomical patterns.

exception DoesNotExist
exception SolarSchedule.MultipleObjectsReturned
SolarSchedule.event

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

classmethod SolarSchedule.from_schedule(schedule)[source]
SolarSchedule.get_event_display(*moreargs, **morekwargs)
SolarSchedule.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SolarSchedule.latitude

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SolarSchedule.longitude

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SolarSchedule.objects = <django.db.models.manager.Manager object>
SolarSchedule.periodictask_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

SolarSchedule.schedule
django_celery_beat.models.cronexp(field)[source]

Representation of cron expression.