Skip to main content

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

NameTypeDescription
selfobjectThe Celery task instance, providing access to the current request context.
_argsanyVariable positional arguments passed to the task, which are ignored by this implementation.

Returns

TypeDescription
stringA formatted string containing the task's priority value extracted from the delivery metadata.