Skip to content

Commit

Permalink
Leader assignment debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 24, 2024
1 parent 2ce27be commit 20e0248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aspen/leader_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ pub async fn aspen_leader_thread(
}

if chateau_data_changed || aspen_workers_list_changed {
println!("Assigning tasks to workers....");
// divide it into chunks
if let Some(chateau_list_lock) = chateau_list_lock.as_ref() {
for (index, (chateau_id, chateau)) in
Expand Down Expand Up @@ -239,6 +240,7 @@ pub async fn aspen_leader_thread(
.unwrap();
}
}
println!("Assigned {} chateaus across {} workers", chateau_list_lock.chateaus.len(), workers_nodes_lock.len());
}
}

Expand Down

0 comments on commit 20e0248

Please sign in to comment.