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 File::Basename;
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;");

View file

@ -3,10 +3,10 @@
use strict;
use Cwd;
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;");
@ -49,6 +49,7 @@ sub checkJobs {
$job->schedulingInfo->locker($$);
$job->schedulingInfo->logfile($logfile);
$job->schedulingInfo->update;
$job->buildsteps->delete_all;
}
});
@ -65,8 +66,8 @@ sub checkJobs {
open LOG, ">$logfile" or die;
POSIX::dup2(fileno(LOG), 1) or die;
POSIX::dup2(fileno(LOG), 2) or die;
exec("perl", "-IHydraFrontend/lib", "-w",
"./build.pl", $id);
exec("perl", "-IHydra/lib", "-w",
"./Hydra/programs/Build.pl", $id);
warn "cannot start job " . $id;
_exit(1);
}

View file

@ -2,10 +2,10 @@
use strict;
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;");

View file

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