Return true if the task overrides ``attr``.
(task, attr)
| 129 | |
| 130 | |
| 131 | def 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 | |
| 137 | def get_log_policy(task, einfo, exc): |
no test coverage detected