MCPcopy
hub / github.com/celery/celery / get_log_policy

Function get_log_policy

celery/app/trace.py:137–147  ·  view source on GitHub ↗
(task, einfo, exc)

Source from the content-addressed store, hash-verified

135
136
137def get_log_policy(task, einfo, exc):
138 if isinstance(exc, Reject):
139 return log_policy_reject
140 elif isinstance(exc, Ignore):
141 return log_policy_ignore
142 elif einfo.internal:
143 return log_policy_internal
144 else:
145 if task.throws and isinstance(exc, task.throws):
146 return log_policy_expected
147 return log_policy_unexpected
148
149
150def get_task_name(request, default):

Callers 2

test_get_log_policyMethod · 0.90
_log_errorMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_get_log_policyMethod · 0.72