Commit 855b5849 authored by Dan Povey's avatar Dan Povey
Browse files

Fix to how queue.pl works around qsub bug.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@612 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent b208abd4
......@@ -95,15 +95,17 @@ close(S) || die "Could not close script file $shfile";
#
system "$qsub_cmd";
if ($? == 0) { exit(0); }
$errmsg = `tail -2 $dir/queue.log`;
if ($errmsg =~ m/containes/) { # the error message "range_list containes no elements"
$errmsgs = `cat $dir/queue.log`;
if ($errmsgs =~ m/containes/) { # the error message "range_list containes no elements"
# seems to be encountered due to a bug in grid engine... since this appears to be
# intermittent, we try a bunch of times, with sleeps in between, if this happens.
print STDERR "Command writing to $logfile failed, apparently due to queue bug " .
" (range_list containes no elements)... will try again a few times.\n";
$delay = 60; # one minute delay initially.
for ($x = 1; $x < 10; $x++) {
print STDERR "[$x/10]";
sleep(10.0);
sleep($delay);
$delay += 60*5; # Add 5 minutes to the delay.
system "$qsub_cmd";
if ($? == 0) { exit(0); }
}
......
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