task_has_custom
Return true if the task overrides attr.
def task_has_custom(
task: Task,
attr: string
) - > boolean
Return true if the task overrides attr.
Parameters
| Name | Type | Description |
|---|---|---|
| task | Task | The Celery task instance to inspect for custom attribute definitions. |
| attr | string | The name of the attribute or method to check for an override. |
Returns
| Type | Description |
|---|---|
boolean | True if the attribute is defined in the task's subclass or monkey-patched, rather than inherited from BaseTask or object. |