MCPcopy
hub / github.com/celery/celery / task_has_custom

Function task_has_custom

celery/app/trace.py:131–134  ·  view source on GitHub ↗

Return true if the task overrides ``attr``.

(task, attr)

Source from the content-addressed store, hash-verified

129
130
131def task_has_custom(task, attr):
132 """Return true if the task overrides ``attr``."""
133 return mro_lookup(task.__class__, attr, stop={BaseTask, object},
134 monkey_patched=['celery.app.task'])
135
136
137def get_log_policy(task, einfo, exc):

Callers 1

build_tracerFunction · 0.85

Calls 1

mro_lookupFunction · 0.90

Tested by

no test coverage detected