From eea384675436315412e1040f6d0392665b4bddee Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 26 Feb 2013 16:10:36 +0100 Subject: [PATCH] After editing a jobset, push it to the front of the evaluation queue --- src/lib/Hydra/Controller/Jobset.pm | 1 + src/root/jobset.tt | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index c4c179b2..1cbed7e9 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -217,6 +217,7 @@ sub updateJobset { , emailoverride => trim($c->request->params->{emailoverride}) || "" , hidden => defined $c->request->params->{visible} ? 0 : 1 , keepnr => trim($c->request->params->{keepnr}) || 3 + , triggertime => $jobset->triggertime // time() }); my %inputNames; diff --git a/src/root/jobset.tt b/src/root/jobset.tt index ea125564..abd86c6b 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -59,8 +59,7 @@ Last checked: [% IF jobset.lastcheckedtime %] - [% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime %][% IF jobset.errormsg %], with - evaluation errors![% ELSE %], no evaluation errors[% END %] + [% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime %], [% IF jobset.errormsg %]with errors![% ELSE %]no errors[% END %] [% ELSE %] never [% END %] @@ -76,6 +75,12 @@ [% END %] + [% IF jobset.triggertime %] + + Evaluation pending since: + [% INCLUDE renderDateTime timestamp = jobset.triggertime %] + + [% END %]