From b38ceaaeeb9934f88997e16b901d9480d3e4613a Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 8 Sep 2021 20:19:56 +0100 Subject: [PATCH] Change duplicate job status from 'error' to 'info' --- Changes | 6 ++++++ lib/App/Netdisco/JobQueue/PostgreSQL.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index b69662bb..0bb8d782 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.049005 - 2021-09-08 + + [ENHANCEMENTS] + + * Change duplicate job status from 'error' to 'info' + 2.049004 - 2021-09-03 [BUG FIXES] diff --git a/lib/App/Netdisco/JobQueue/PostgreSQL.pm b/lib/App/Netdisco/JobQueue/PostgreSQL.pm index 857e2741..c8e58919 100644 --- a/lib/App/Netdisco/JobQueue/PostgreSQL.pm +++ b/lib/App/Netdisco/JobQueue/PostgreSQL.pm @@ -159,7 +159,7 @@ sub jq_getsome { }], ], }, {for => 'update'}) - ->update({ status => 'error', log => (sprintf 'duplicate of %s', $job->id) }); + ->update({ status => 'info', log => (sprintf 'duplicate of %s', $job->id) }); debug sprintf 'getsome: cancelled %s duplicate(s) of job %s', ($gone || 0), $job->id; push @returned, App::Netdisco::Backend::Job->new({ $job->get_columns });