allow custom actions to be handled by scheduler
This commit is contained in:
@@ -87,12 +87,10 @@ sub jq_getsome {
|
|||||||
|
|
||||||
my $hiprio = $jobs->search({
|
my $hiprio = $jobs->search({
|
||||||
%jobsearch,
|
%jobsearch,
|
||||||
-or => [{
|
-or => [
|
||||||
username => { '!=' => undef },
|
{ username => { '!=' => undef } },
|
||||||
action => { -in => setting('job_prio')->{'normal'} },
|
{ action => { -in => setting('job_prio')->{'high'} } },
|
||||||
},{
|
],
|
||||||
action => { -in => setting('job_prio')->{'high'} },
|
|
||||||
}],
|
|
||||||
}, {
|
}, {
|
||||||
%randoms,
|
%randoms,
|
||||||
'+select' => [\'100 as job_priority'], '+as' => ['me.job_priority'],
|
'+select' => [\'100 as job_priority'], '+as' => ['me.job_priority'],
|
||||||
@@ -100,7 +98,7 @@ sub jq_getsome {
|
|||||||
|
|
||||||
my $loprio = $jobs->search({
|
my $loprio = $jobs->search({
|
||||||
%jobsearch,
|
%jobsearch,
|
||||||
action => { -in => setting('job_prio')->{'normal'} },
|
action => { -not_in => setting('job_prio')->{'high'} },
|
||||||
}, {
|
}, {
|
||||||
%randoms,
|
%randoms,
|
||||||
'+select' => [\'0 as job_priority'], '+as' => ['me.job_priority'],
|
'+select' => [\'0 as job_priority'], '+as' => ['me.job_priority'],
|
||||||
|
|||||||
Reference in New Issue
Block a user