forked from lix-project/hydra
Drop the 5 minute minimum interval between triggered evals
This commit is contained in:
parent
85a1ce99c9
commit
e35b704d80
|
@ -22,9 +22,6 @@ my $config = getHydraConfig();
|
||||||
|
|
||||||
my $plugins = [Hydra::Plugin->instantiate(db => $db, config => $config)];
|
my $plugins = [Hydra::Plugin->instantiate(db => $db, config => $config)];
|
||||||
|
|
||||||
# Don't check a jobset more than once every five minutes.
|
|
||||||
my $minCheckInterval = 5 * 60;
|
|
||||||
|
|
||||||
my $dryRun = defined $ENV{'HYDRA_DRY_RUN'};
|
my $dryRun = defined $ENV{'HYDRA_DRY_RUN'};
|
||||||
|
|
||||||
|
|
||||||
|
@ -305,8 +302,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(
|
||||||
{ 'triggertime' => { '!=', undef },
|
{ 'triggertime' => { '!=', undef } },
|
||||||
, -or => [ 'lastcheckedtime' => undef, 'lastcheckedtime' => { '<', time() - $minCheckInterval } ] },
|
|
||||||
{ join => 'project', order_by => [ 'triggertime' ], rows => 1 });
|
{ join => 'project', order_by => [ 'triggertime' ], rows => 1 });
|
||||||
|
|
||||||
# Otherwise, check the jobset that hasn't been checked for the
|
# Otherwise, check the jobset that hasn't been checked for the
|
||||||
|
|
Loading…
Reference in a new issue