Regenerate standings and log after job
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 27 Jan 2014 16:43:06 +0000 (18:43 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 27 Jan 2014 16:43:06 +0000 (18:43 +0200)
lib/Gruntmaster/Daemon.pm

index 78b39e4c3f3ee6ad29328b3303db1907c78f658d..ed8e405ae37f603a30f495701aa456426a056759 100644 (file)
@@ -8,7 +8,7 @@ our $VERSION = '0.001';
 
 use Gruntmaster::Daemon::Constants qw/ERR/;
 use Gruntmaster::Daemon::Format qw/mkrun/;
-use Gruntmaster::Data qw/job_inmeta job_problem problem_meta set_job_daemon set_job_result set_job_result_text set_job_results SUBSCRIBE WAIT_FOR_MESSAGES/;
+use Gruntmaster::Data;
 use Gruntmaster::Page::Log;
 
 use File::Basename qw/fileparse/;
@@ -133,8 +133,11 @@ sub process{
   PUBLISH gensrc => $job;
   PUBLISH genpage => "$log/job/$job.html";
   PUBLISH genpage => "$log/index.html";
+  PUBLISH genpage => "$log/st.html";
   my $page = ($job + Gruntmaster::Page::Log::PAGE_SIZE - 1) / Gruntmaster::Page::Log::PAGE_SIZE;
-  PUBLISH genpage => "$log/$page.html"
+  PUBLISH genpage => "$log/@{[$page - 1]}.html";
+  PUBLISH genpage => "$log/$page.html";
+  PUBLISH genpage => "$log/@{[$page + 1]}.html";
 }
 
 sub got_job{
This page took 0.011378 seconds and 4 git commands to generate.