revert unmeant previous change which caused errors to stay, even after successful evaluation of jobs

This commit is contained in:
Rob Vermaas 2010-01-12 08:39:30 +00:00
parent 13c8953918
commit 3763748dbb

View file

@ -44,7 +44,11 @@ sub setJobsetError {
sub sendJobsetErrorNotification() {
my ($jobset, $errorMsg) = @_;
print STDERR "\n" ;
print STDERR $errorMsg ;
print STDERR "\n" ;
return if $jobset->project->owner->emailonerror == 0;
return if $errorMsg eq "";
my $projectName = $jobset->project->name;
my $jobsetName = $jobset->name;
@ -161,10 +165,8 @@ sub checkJobset {
}
$msg .= "at `" . $error->{location} . "' [$bindings]:\n" . $error->{msg} . "\n\n";
}
if( !($msg eq "") ) {
setJobsetError($jobset, $msg);
}
}
sub checkJobsetWrapped {
@ -181,9 +183,7 @@ sub checkJobsetWrapped {
print "error evaluating jobset ", $jobset->name, ": $msg";
txn_do($db, sub {
$jobset->update({lastcheckedtime => time});
if( !($msg eq "") ) {
setJobsetError($jobset, $msg);
}
});
}
}