Skip to main content

retry_once_priority

Task that fails and is retried. Returns the priority.

def retry_once_priority(
self: Task,
*args: any,
expires: float = 60.0,
max_retries: integer = 1,
countdown: float = 0.1
) - > integer

Task that fails and is retried. Returns the priority.

Parameters

NameTypeDescription
selfTaskThe Celery task instance bound to the function
*argsanyVariable length argument list passed to the task
expiresfloat = 60.0The expiration time in seconds for the task execution
max_retriesinteger = 1The maximum number of times the task should be retried before failing
countdownfloat = 0.1The delay in seconds to wait before executing the retry attempt

Returns

TypeDescription
integerThe priority level of the task retrieved from the delivery information after a successful retry