]> mj.ucw.cz Git - bex.git/commitdiff
brun: Report DONE even on hosts where no job is queued
authorMartin Mares <mj@ucw.cz>
Mon, 31 Oct 2011 15:11:24 +0000 (16:11 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 31 Oct 2011 15:11:24 +0000 (16:11 +0100)
Otherwise, bprun can lose a process if another instance of brun
flushed all jobs in the meantime.

brun

diff --git a/brun b/brun
index 387347a9b0c5aed9f5b168764e9821271fe51dc7..3769b31eaf886d9a01cbd58e524c4c35eb897f54 100755 (executable)
--- a/brun
+++ b/brun
@@ -187,6 +187,7 @@ for my $mach (@machines) {
                        }
                }
        }
+} continue {
        update_status($mach, '-', 'DONE', undef);
 }
 $queue->unlock;