hydra-evaluator: Respect triggers of disabled jobsets

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-02 11:32:25 -04:00
parent b8ea428bb1
commit adb9ad83dd

View file

@ -263,7 +263,7 @@ sub checkJobset {
sub checkSomeJobset { sub checkSomeJobset {
# If any jobset has been triggered by a push, check it. # If any jobset has been triggered by a push, check it.
my ($jobset) = $db->resultset('Jobsets')->search( my ($jobset) = $db->resultset('Jobsets')->search(
{ 'project.enabled' => 1, 'me.enabled' => 1, 'triggertime' => { '!=', undef }, { 'triggertime' => { '!=', undef },
, -or => [ 'lastcheckedtime' => undef, 'lastcheckedtime' => { '<', time() - $minCheckInterval } ] }, , -or => [ 'lastcheckedtime' => undef, 'lastcheckedtime' => { '<', time() - $minCheckInterval } ] },
{ join => 'project', order_by => [ 'triggertime' ], rows => 1 }); { join => 'project', order_by => [ 'triggertime' ], rows => 1 });