From: Martin Mares Date: Mon, 31 Oct 2011 14:31:58 +0000 (+0100) Subject: Use job->name consistently X-Git-Tag: v3.0~36 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ba7945c1c6171b2ed5f2b40a6b8cbd0dc017a54e;p=bex.git Use job->name consistently --- diff --git a/TODO b/TODO index ea1dfba..e6fca02 100644 --- a/TODO +++ b/TODO @@ -3,4 +3,3 @@ - bprun --curses - Terminology: machine vs. host - Detector of orphans (unused queue dirs, jobs on non-existent machines, non-queued jobs) -- use job->name diff --git a/brun b/brun index 7af77f3..42bdf86 100755 --- a/brun +++ b/brun @@ -127,7 +127,7 @@ sub run_job_body($$$) { update_status($mach, $jid, 'RUN', $queue); my $lf = $queue->log_file($mach, $jid); - system 'bash', '-o', 'pipefail', '-c', "$BEX::Config::ssh_command -t $host '$rtmp ; e=\$? ; rm -f $rtmp ; exit \$e' 2>&1 | tee -a $lf"; + system 'bash', '-o', 'pipefail', '-c', "$BEX::Config::ssh_command $host '$rtmp ; e=\$? ; rm -f $rtmp ; exit \$e' 2>&1 | tee -a $lf"; if ($?) { return ('FAILED', 'Job failed ' . exit_status($?)); } else { @@ -175,7 +175,7 @@ for my $mach (@machines) { my $stat = { 'Time' => time, }; - print "### Running $jid (", $job->attr('Subject'), ") on $mach ###\n"; + print "### Running ", $job->name, " on $mach ###\n"; my ($s, $msg) = run_job($job, $queue, $mach); $stat->{'Status'} = $s;