Skip to content

Commit f86e2ce

Browse files
committed
Update process_parallel.py
1 parent dcc96c2 commit f86e2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openevolve/process_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ async def run_evolution(
388388
batch_size = min(self.num_workers * 2, max_iterations)
389389

390390
# Submit initial batch - distribute across islands
391-
batch_per_island = max(1, batch_size // self.num_islands)
391+
batch_per_island = max(1, batch_size // self.num_islands) if batch_size > 0 else 0
392392
current_iteration = start_iteration
393393

394394
# Round-robin distribution across islands

0 commit comments

Comments
 (0)