This commit is contained in:
Eelco Dolstra 2008-11-25 11:09:15 +00:00
parent 410b80063c
commit 6efe0c37f3
4 changed files with 10 additions and 9 deletions

View file

@ -3,10 +3,10 @@
use strict; use strict;
use File::Basename; use File::Basename;
use File::stat; use File::stat;
use HydraFrontend::Schema; use Hydra::Schema;
my $db = HydraFrontend::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {}); my $db = Hydra::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {});
$db->storage->dbh->do("PRAGMA synchronous = OFF;"); $db->storage->dbh->do("PRAGMA synchronous = OFF;");

View file

@ -3,10 +3,10 @@
use strict; use strict;
use Cwd; use Cwd;
use POSIX qw(dup2); use POSIX qw(dup2);
use HydraFrontend::Schema; use Hydra::Schema;
my $db = HydraFrontend::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {}); my $db = Hydra::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {});
$db->storage->dbh->do("PRAGMA synchronous = OFF;"); $db->storage->dbh->do("PRAGMA synchronous = OFF;");
@ -49,6 +49,7 @@ sub checkJobs {
$job->schedulingInfo->locker($$); $job->schedulingInfo->locker($$);
$job->schedulingInfo->logfile($logfile); $job->schedulingInfo->logfile($logfile);
$job->schedulingInfo->update; $job->schedulingInfo->update;
$job->buildsteps->delete_all;
} }
}); });
@ -65,8 +66,8 @@ sub checkJobs {
open LOG, ">$logfile" or die; open LOG, ">$logfile" or die;
POSIX::dup2(fileno(LOG), 1) or die; POSIX::dup2(fileno(LOG), 1) or die;
POSIX::dup2(fileno(LOG), 2) or die; POSIX::dup2(fileno(LOG), 2) or die;
exec("perl", "-IHydraFrontend/lib", "-w", exec("perl", "-IHydra/lib", "-w",
"./build.pl", $id); "./Hydra/programs/Build.pl", $id);
warn "cannot start job " . $id; warn "cannot start job " . $id;
_exit(1); _exit(1);
} }

View file

@ -2,10 +2,10 @@
use strict; use strict;
use XML::Simple; use XML::Simple;
use HydraFrontend::Schema; use Hydra::Schema;
my $db = HydraFrontend::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {}); my $db = Hydra::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {});
$db->storage->dbh->do("PRAGMA synchronous = OFF;"); $db->storage->dbh->do("PRAGMA synchronous = OFF;");

View file

@ -112,7 +112,7 @@
[% content %] [% content %]
<div id="footer"> <div id="footer">
<hr /> <hr />
Generated at [% date.format %]. Generated on [% date.format %].
</div> </div>
</div> </div>