beat.web.backend.models.slot module¶
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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>¶
-
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¶
-
worker_id¶
-