MCPcopy
hub / github.com/redis/redis-py / check_slots_coverage

Method check_slots_coverage

tests/test_cluster.py:3370–3376  ·  view source on GitHub ↗
(slots_cache)

Source from the content-addressed store, hash-verified

3368 original_check_slots_coverage = nm.check_slots_coverage
3369
3370 def check_slots_coverage(slots_cache):
3371 # Pause initialization after it has rebuilt the temporary slots
3372 # cache, so move_slot runs during a deterministic refresh window.
3373 initialize_paused.set()
3374 if not allow_initialize_to_finish.wait(timeout=5):
3375 raise TimeoutError("Timed out waiting for move_slot worker")
3376 return original_check_slots_coverage(slots_cache)
3377
3378 def initialize_worker():
3379 """Reinitialize the cluster"""

Callers

nothing calls this directly

Calls 3

TimeoutErrorClass · 0.90
waitMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected