This commit is contained in:
parent
410b80063c
commit
6efe0c37f3
|
@ -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;");
|
||||
|
|
@ -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);
|
||||
}
|
|
@ -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;");
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
[% content %]
|
||||
<div id="footer">
|
||||
<hr />
|
||||
Generated at [% date.format %].
|
||||
Generated on [% date.format %].
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue