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

Method failing_save_group

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

Source from the content-addressed store, hash-verified

191 call_count = [0]
192
193 def failing_save_group(*args, **kwargs):
194 call_count[0] += 1
195 if call_count[0] == 1:
196 raise DatabaseError("connection error", None, None)
197 return original_save_group(*args, **kwargs)
198
199 tb._save_group = failing_save_group
200

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected