better job queue stats in web
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user