return_priority
Returns a string indicating the priority level of the task based on its delivery information.
def return_priority(
self: object,
_args: any
) - > string
Retrieves the priority level of the current task from its delivery information.
Parameters
| Name | Type | Description |
|---|---|---|
| self | object | The Celery task instance, providing access to the current request context. |
| _args | any | Variable positional arguments passed to the task, which are ignored by this implementation. |
Returns
| Type | Description |
|---|---|
string | A formatted string containing the task's priority value extracted from the delivery metadata. |