Commit cf28a897 authored by Leo Gordon's avatar Leo Gordon
Browse files

Log all instances when a semaphore had to be re-balanced

parent 322a5675
......@@ -725,6 +725,7 @@ sub balance_semaphores {
while(my ($job_id, $was, $should) = $find_sth->fetchrow_array()) {
warn "Balancing semaphore: job_id=$job_id ($was -> $should)\n";
$update_sth->execute($should, $job_id);
$self->db->get_LogMessageAdaptor->store_job_message( $job_id, "Re-balancing the semaphore_count: $was -> $should", 1 );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment