try to make highest job ID win when removing duplicates
This commit is contained in:
@@ -159,10 +159,11 @@ sub jq_getsome {
|
|||||||
-and => [
|
-and => [
|
||||||
%job_properties,
|
%job_properties,
|
||||||
-or => [{
|
-or => [{
|
||||||
job => { '!=' => $job->id },
|
job => { '<' => $job->id },
|
||||||
},{
|
},{
|
||||||
job => $job->id,
|
job => $job->id,
|
||||||
-exists => $jobs->search({
|
-exists => $jobs->search({
|
||||||
|
job => { '>' => $job->id },
|
||||||
status => { -like => 'queued-%' },
|
status => { -like => 'queued-%' },
|
||||||
started => \[q/> (now() - ?::interval)/, setting('jobs_stale_after')],
|
started => \[q/> (now() - ?::interval)/, setting('jobs_stale_after')],
|
||||||
%job_properties,
|
%job_properties,
|
||||||
|
|||||||
Reference in New Issue
Block a user