Skip to main content

app_has_custom

Return true if app has customized method attr.

def app_has_custom(
app: Celery,
attr: string
) - > boolean

Return true if app has customized method attr.

Parameters​

NameTypeDescription
appCeleryThe Celery application instance to inspect for customizations.
attrstringThe name of the method or property to check for an override in the inheritance chain.

Returns​

TypeDescription
booleanTrue if the attribute has been overridden in a subclass or monkey-patched, False if it uses the default implementation from Celery or object.