print $status_fd "! $mach $job $status\n";
}
if ($log_on_queue) {
- $log_on_queue->log($mach, $job, $status, $msg);
+ $log_on_queue->update_job_status($mach, $job, $status, $msg);
}
}
$jid eq $given_job or next;
}
my $job = BEX::Job->new_from_file($queue->job_file($jid));
+ update_status($mach, $jid, 'INIT', undef);
if (!$queue->lock($mach, $jid)) {
print "### Skipping locked $jid on $mach ###\n";
update_status($mach, $jid, 'LOCKED', undef);
next;
}
- my $stat = {
- 'Time' => time,
- };
print "### Running ", $job->name, " on $mach ###\n";
my ($s, $msg) = run_job($job, $queue, $mach);
-
- $stat->{'Status'} = $s;
- $stat->{'Message'} = $msg;
- $queue->write_job_status($mach, $jid, $stat);
-
- # Called after writing the status file, so that the front-end watching
- # our status FIFO can see the new status file.
update_status($mach, $jid, $s, $queue, $msg);
if ($s eq 'OK') {
}
}
}
+} continue {
update_status($mach, '-', 'DONE', undef);
}
$queue->unlock;