beat.web.backend.models.slot module

class beat.web.backend.models.slot.SlotManager[source]

Bases: django.db.models.manager.Manager

get_by_natural_key(queue_name, worker_name)[source]
class beat.web.backend.models.slot.Slot(id, queue, worker, quantity, priority)[source]

Bases: django.db.models.base.Model

queue

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.

worker

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.

quantity

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

priority

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

objects = <beat.web.backend.models.slot.SlotManager object>
natural_key()[source]
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

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

queue_id

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

worker_id

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