projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56e0b65
)
Remove purges (as they are now unnecessary)
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 25 Jan 2015 11:53:27 +0000
(13:53 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 25 Jan 2015 11:53:27 +0000
(13:53 +0200)
lib/Gruntmaster/Daemon.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Daemon.pm
b/lib/Gruntmaster/Daemon.pm
index 6fef26d8aee3210045ae638bc16b78aabc02c319..ed2415812c0b61537fb97ede9420789195afb74a 100644
(file)
--- a/
lib/Gruntmaster/Daemon.pm
+++ b/
lib/Gruntmaster/Daemon.pm
@@
-33,8
+33,6
@@
use constant FORMAT_EXTENSION => {
##################################################
##################################################
-sub purge;
-
my $db;
sub safe_can_nodie {
my $db;
sub safe_can_nodie {
@@
-144,12
+142,6
@@
sub process{
owner => $jobr->owner,
job => $jobr->id,
solved => $solved}) if !$jobr->problem->private;
owner => $jobr->owner,
job => $jobr->id,
solved => $solved}) if !$jobr->problem->private;
-
- purge '/log/';
- purge "/log/$job";
- purge '/st/' . $jobr->contest if $jobr->contest;
- purge '/us/';
- purge '/us/' . $jobr->owner;
}
sub got_job{
}
sub got_job{
@@
-171,7
+163,6
@@
sub got_job{
sub run{
warn "No GRUNTMASTER_VM environment variable. Running without a VM is a security risk.\n" unless $ENV{GRUNTMASTER_VM};
require Gruntmaster::Data;
sub run{
warn "No GRUNTMASTER_VM environment variable. Running without a VM is a security risk.\n" unless $ENV{GRUNTMASTER_VM};
require Gruntmaster::Data;
- Gruntmaster::Data->import;
$db = Gruntmaster::Data->connect('dbi:Pg:');
Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
get_logger->info("gruntmasterd $VERSION started");
$db = Gruntmaster::Data->connect('dbi:Pg:');
Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
get_logger->info("gruntmasterd $VERSION started");
This page took
0.011625 seconds
and
4
git commands to generate.