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

Method failing

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

Source from the content-addressed store, hash-verified

267 call_count = [0]
268
269 def failing(*args, **kwargs):
270 call_count[0] += 1
271 if call_count[0] == 1:
272 raise DatabaseError("temporary failure", None, None)
273 return original(*args, **kwargs)
274
275 tb._task_result_exists = failing
276

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected