better job queue stats in web

This commit is contained in:
Oliver Gorwits
2023-10-27 15:32:06 +01:00
parent 0631d59345
commit 6b80626a29
4 changed files with 48 additions and 10 deletions

View File

@@ -39,6 +39,7 @@ sub jq_warm_thrusters {
my $deferrals = setting('workers')->{'max_deferrals'} - 1;
$rs->search({
backend => setting('workers')->{'BACKEND'},
device => { '!=' => '255.255.255.255' },
deferrals => { '>' => $deferrals },
}, { for => 'update' }, )->update({ deferrals => $deferrals });
@@ -47,6 +48,14 @@ sub jq_warm_thrusters {
actionset => { -value => [] }, # special syntax for matching empty ARRAY
deferrals => 0,
})->delete;
# also clean out any previous backend hint
# primeskiplist action will then run to recreate it
$rs->search({
backend => setting('workers')->{'BACKEND'},
device => '255.255.255.255',
actionset => { -value => [] }, # special syntax for matching empty ARRAY
})->delete;
});
}