---
url: "https://vueda.dev/v3/reference/api/py/vueda.vdq.models/QueueItem.md"
title: "QueueItem"
---

# QueueItem

## Overview

QueueItem(id, sender, receiver, content_type, object_id, method, result, retry_delay, queued, last_updated, done_since, task_id)

## `DoesNotExist` {#DoesNotExist}

The requested object does not exist

### Source {#DoesNotExist-source}

`server/vueda/vdq/models.py`

## `MultipleObjectsReturned` {#MultipleObjectsReturned}

The query returned multiple objects when only one was expected.

### Source {#MultipleObjectsReturned-source}

`server/vueda/vdq/models.py`

## `NotUpdated` {#NotUpdated}

The updated object no longer exists.

### Source {#NotUpdated-source}

`server/vueda/vdq/models.py`

## `Vueda` {#Vueda}

### Source {#Vueda-source}

`server/vueda/vdq/models.py:107`

## `delete_email_attachments` {#delete_email_attachments}

### Signature {#delete_email_attachments-signature}

`delete_email_attachments(self)`

#### Parameters {#delete_email_attachments-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |

### Source {#delete_email_attachments-source}

`server/vueda/vdq/models.py:132`

## `delete_files` {#delete_files}

### Signature {#delete_files-signature}

`delete_files(self)`

#### Parameters {#delete_files-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |

### Source {#delete_files-source}

`server/vueda/vdq/models.py:127`

## `done_since` {#done_since}

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

### Signature {#done_since-signature}

`done_since(unknown)`

#### Parameters {#done_since-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="done_since-param-unknown">unknown</span> |  | yes |  |  |

## `get_formatted_name` {#get_formatted_name}

### Signature {#get_formatted_name-signature}

`get_formatted_name(self)`

#### Parameters {#get_formatted_name-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |

### Source {#get_formatted_name-source}

`server/vueda/vdq/models.py:124`

## `get_method_display` {#get_method_display}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_method_display-signature}

`get_method_display(unknown)`

#### Parameters {#get_method_display-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_method_display-param-unknown">unknown</span> |  | yes |  |  |

## `get_next_by_done_since` {#get_next_by_done_since}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_next_by_done_since-signature}

`get_next_by_done_since(unknown)`

#### Parameters {#get_next_by_done_since-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_next_by_done_since-param-unknown">unknown</span> |  | yes |  |  |

## `get_next_by_last_updated` {#get_next_by_last_updated}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_next_by_last_updated-signature}

`get_next_by_last_updated(unknown)`

#### Parameters {#get_next_by_last_updated-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_next_by_last_updated-param-unknown">unknown</span> |  | yes |  |  |

## `get_next_by_queued` {#get_next_by_queued}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_next_by_queued-signature}

`get_next_by_queued(unknown)`

#### Parameters {#get_next_by_queued-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_next_by_queued-param-unknown">unknown</span> |  | yes |  |  |

## `get_previous_by_done_since` {#get_previous_by_done_since}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_previous_by_done_since-signature}

`get_previous_by_done_since(unknown)`

#### Parameters {#get_previous_by_done_since-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_previous_by_done_since-param-unknown">unknown</span> |  | yes |  |  |

## `get_previous_by_last_updated` {#get_previous_by_last_updated}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_previous_by_last_updated-signature}

`get_previous_by_last_updated(unknown)`

#### Parameters {#get_previous_by_last_updated-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_previous_by_last_updated-param-unknown">unknown</span> |  | yes |  |  |

## `get_previous_by_queued` {#get_previous_by_queued}

Method descriptor with partial application of the given arguments
and keywords.

Supports wrapping existing descriptors and handles non-descriptor
callables as instance methods.

### Signature {#get_previous_by_queued-signature}

`get_previous_by_queued(unknown)`

#### Parameters {#get_previous_by_queued-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="get_previous_by_queued-param-unknown">unknown</span> |  | yes |  |  |

## `id` {#id}

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

### Signature {#id-signature}

`id(unknown)`

#### Parameters {#id-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="id-param-unknown">unknown</span> |  | yes |  |  |

## `last_updated` {#last_updated}

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

### Signature {#last_updated-signature}

`last_updated(unknown)`

#### Parameters {#last_updated-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="last_updated-param-unknown">unknown</span> |  | yes |  |  |

## `method` {#method}

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

### Signature {#method-signature}

`method(unknown)`

#### Parameters {#method-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="method-param-unknown">unknown</span> |  | yes |  |  |

## `object_id` {#object_id}

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

### Signature {#object_id-signature}

`object_id(unknown)`

#### Parameters {#object_id-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="object_id-param-unknown">unknown</span> |  | yes |  |  |

## `on_transition` {#on_transition}

Override this method to add custom logic on transition.

### Signature {#on_transition-signature}

`on_transition(self, transition, user, dry_run)`

#### Parameters {#on_transition-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="on_transition-param-transition">transition</span> |  | yes |  |  |
| <span id="on_transition-param-user">user</span> |  | no | `None` |  |
| <span id="on_transition-param-dry_run">dry_run</span> |  | no | `False` |  |

### Source {#on_transition-source}

`server/vueda/vdq/models.py:141`

## `pgh_event_model` {#pgh_event_model}

A descriptor for accessing the pgh_event_model field on a tracked model

### Signature {#pgh_event_model-signature}

`pgh_event_model(unknown)`

#### Parameters {#pgh_event_model-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="pgh_event_model-param-unknown">unknown</span> |  | yes |  |  |

## `queued` {#queued}

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

### Signature {#queued-signature}

`queued(unknown)`

#### Parameters {#queued-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="queued-param-unknown">unknown</span> |  | yes |  |  |

## `result` {#result}

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

### Signature {#result-signature}

`result(unknown)`

#### Parameters {#result-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="result-param-unknown">unknown</span> |  | yes |  |  |

## `retry_delay` {#retry_delay}

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

### Signature {#retry_delay-signature}

`retry_delay(unknown)`

#### Parameters {#retry_delay-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="retry_delay-param-unknown">unknown</span> |  | yes |  |  |

## `task_id` {#task_id}

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

### Signature {#task_id-signature}

`task_id(unknown)`

#### Parameters {#task_id-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="task_id-param-unknown">unknown</span> |  | yes |  |  |

## `anymail` {#anymail}

Accessor to the related object on the reverse side of a one-to-one
relation.

In the example::

    class Restaurant(Model):
        place = OneToOneField(Place, related_name='restaurant')

``Place.restaurant`` is a ``ReverseOneToOneDescriptor`` instance.

## `content_object` {#content_object}

## `content_type` {#content_type}

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.

## `content_type_id` {#content_type_id}

## `events` {#events}

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_reverse_many_to_one_manager()`` defined below.

## `formatted_name` {#formatted_name}

## `object_states_proxy` {#object_states_proxy}

Accessor to the related objects manager on the one-to-many relation created
by GenericRelation.

In the example::

    class Post(Model):
        comments = GenericRelation(Comment)

``post.comments`` is a ReverseGenericManyToOneDescriptor instance.

## `pgh_event_models` {#pgh_event_models}

## `receiver` {#receiver}

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.

## `receiver_id` {#receiver_id}

## `sender` {#sender}

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.

## `sender_id` {#sender_id}

## `sms` {#sms}

Accessor to the related object on the reverse side of a one-to-one
relation.

In the example::

    class Restaurant(Model):
        place = OneToOneField(Place, related_name='restaurant')

``Place.restaurant`` is a ``ReverseOneToOneDescriptor`` instance.

## Source

`server/vueda/vdq/models.py:85`
