MCPcopy Create free account
hub / github.com/FareedKhan-dev/ai-long-task / next_island

Method next_island

data/database.py:1767–1771  ·  view source on GitHub ↗

Move to the next island in round-robin fashion

(self)

Source from the content-addressed store, hash-verified

1765 logger.debug(f"Switched to evolving island {self.current_island}")
1766
1767 def next_island(self) -> int:
1768 """Move to the next island in round-robin fashion"""
1769 self.current_island = (self.current_island + 1) % len(self.islands)
1770 logger.debug(f"Advanced to island {self.current_island}")
1771 return self.current_island
1772
1773 def increment_island_generation(self, island_idx: Optional[int] = None) -> None:
1774 """Increment generation counter for an island"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected