Skip to main content

get_actual_ignore_result

Return the effective ignore_result, with request overriding task.

If req provides an explicit ignore_result, that value is used; otherwise task.ignore_result is returned.

def get_actual_ignore_result(
task: Task,
req: Context
) - > boolean

Return the effective ignore_result, with request overriding task. If req provides an explicit ignore_result, that value is used; otherwise task.ignore_result is returned.

Parameters

NameTypeDescription
taskTaskThe Celery task instance containing the default ignore_result configuration.
reqContextThe request context object which may contain an instance-level override for the ignore_result setting.

Returns

TypeDescription
booleanThe resolved boolean flag indicating whether the task result should be ignored, prioritizing explicit request-level overrides.