django_celery_beat.models

Database models.

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

Timezone Aware Crontab-like schedule.

exception DoesNotExist
exception MultipleObjectsReturned
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.

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 from_schedule(schedule)[source]
get_timezone_display(**morekwargs)
hour

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

id

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

minute

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

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.

objects = <django.db.models.manager.Manager object>
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.

schedule
timezone

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

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

Schedule executing every n seconds.

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

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

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

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

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

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

period_singular
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.

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

Model representing a periodic task.

exception DoesNotExist
exception MultipleObjectsReturned
args

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

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.

crontab_id

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

date_changed

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

description

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

enabled

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

exchange

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

expires

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

get_next_by_date_changed(**morekwargs)
get_previous_by_date_changed(**morekwargs)
id

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

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.

interval_id

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

kwargs

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

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.

name

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

no_changes = False
objects = <django_celery_beat.managers.PeriodicTaskManager object>
one_off

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

queue

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

routing_key

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

save(*args, **kwargs)[source]
schedule
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.

solar_id

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

start_time

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

task

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

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.

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 MultipleObjectsReturned
classmethod changed(instance, **kwargs)[source]
get_next_by_last_update(**morekwargs)
get_previous_by_last_update(**morekwargs)
ident

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

classmethod last_change()[source]
last_update

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

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

Schedule following astronomical patterns.

exception DoesNotExist
exception MultipleObjectsReturned
event

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

classmethod from_schedule(schedule)[source]
get_event_display(**morekwargs)
id

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

latitude

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

longitude

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

objects = <django.db.models.manager.Manager object>
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.

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

Representation of cron expression.