MCPcopy Create free account
hub / github.com/celery/celery / failing_get

Method failing_get

t/unit/backends/test_database.py:168–172  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

166 call_count = [0]
167
168 def failing_get(*args, **kwargs):
169 call_count[0] += 1
170 if call_count[0] == 1:
171 raise DatabaseError("temporary failure", None, None)
172 return original_get(*args, **kwargs)
173
174 tb._get_task_meta_for = failing_get
175

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected