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/] },