Skip to content

Commit

Permalink
Merge branch 'master' of github.com:moses-smt/mosesdecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieu Hoang committed Aug 14, 2014
2 parents 12dfa70 + 7a087f2 commit 9f2f3c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/ems/experiment.perl
Expand Up @@ -716,9 +716,11 @@ sub delete_crashed {
for(my $i=0;$i<=$#DO_STEP;$i++) {
my $step_file = &versionize(&step_file($i),$DELETE_CRASHED);
next unless -e $step_file;
next unless &check_if_crashed($i,$DELETE_CRASHED,"no wait");
&delete_step($DO_STEP[$i],$DELETE_CRASHED);
$crashed++;
if (! -e $step_file.".DONE" || # interrupted (machine went down)
&check_if_crashed($i,$DELETE_CRASHED,"no wait")) { # noted crash
&delete_step($DO_STEP[$i],$DELETE_CRASHED);
$crashed++;
}
}
print "run with -exec to delete steps\n" if $crashed && !$EXECUTE;
print "nothing to do\n" unless $crashed;
Expand Down

0 comments on commit 9f2f3c2

Please sign in to comment.