From 86387627f6e0190a58b271ee40f1ebca0f03b975 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 2 Jun 2019 07:54:00 +0100 Subject: [PATCH] #601 fix job queue no longer shows running or queued jobs --- Changes | 6 ++++++ lib/App/Netdisco/JobQueue/PostgreSQL.pm | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 1693754d..ecdbcf92 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.042010 - 2019-06-02 + + [BUG FIXES] + + * #601 fix job queue no longer shows running or queued jobs + 2.042009 - 2019-05-30 [ENHANCEMENTS] diff --git a/lib/App/Netdisco/JobQueue/PostgreSQL.pm b/lib/App/Netdisco/JobQueue/PostgreSQL.pm index 0b04a3d8..e332131a 100644 --- a/lib/App/Netdisco/JobQueue/PostgreSQL.pm +++ b/lib/App/Netdisco/JobQueue/PostgreSQL.pm @@ -271,7 +271,10 @@ sub jq_complete { sub jq_log { return schema('netdisco')->resultset('Admin')->search({ - 'me.log' => { '-not_like' => 'duplicate of %' }, + -or => [ + { 'me.log' => undef }, + { 'me.log' => { '-not_like' => 'duplicate of %' } }, + ], }, { prefetch => 'target', order_by => { -desc => [qw/entered device action/] },