Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Minion-Backend-SQLite for 
openSUSE:Factory checked in at 2021-06-19 23:04:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Minion-Backend-SQLite (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Minion-Backend-SQLite.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Minion-Backend-SQLite"

Sat Jun 19 23:04:24 2021 rev:10 rq:900875 version:5.0.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Minion-Backend-SQLite/perl-Minion-Backend-SQLite.changes
    2021-02-17 18:13:33.218039446 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Minion-Backend-SQLite.new.2625/perl-Minion-Backend-SQLite.changes
  2021-06-19 23:05:05.955861853 +0200
@@ -1,0 +2,10 @@
+Wed Jun 16 03:06:26 UTC 2021 - Tina M??ller <timueller+p...@suse.de>
+
+- updated to 5.0.5
+   see /usr/share/doc/packages/perl-Minion-Backend-SQLite/Changes
+
+  v5.0.5    2021-06-15 21:18:41 EDT
+    - Support min_priority option in dequeue method.
+    - Update IRC metadata to libera.chat
+
+-------------------------------------------------------------------

Old:
----
  Minion-Backend-SQLite-v5.0.4.tar.gz

New:
----
  Minion-Backend-SQLite-v5.0.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Minion-Backend-SQLite.spec ++++++
--- /var/tmp/diff_new_pack.ZnaYVH/_old  2021-06-19 23:05:06.403862544 +0200
+++ /var/tmp/diff_new_pack.ZnaYVH/_new  2021-06-19 23:05:06.403862544 +0200
@@ -18,7 +18,7 @@
 
 %define cpan_name Minion-Backend-SQLite
 Name:           perl-Minion-Backend-SQLite
-Version:        5.0.4
+Version:        5.0.5
 Release:        0
 Summary:        SQLite backend for Minion job queue
 License:        Artistic-2.0

++++++ Minion-Backend-SQLite-v5.0.4.tar.gz -> 
Minion-Backend-SQLite-v5.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/Build.PL 
new/Minion-Backend-SQLite-v5.0.5/Build.PL
--- old/Minion-Backend-SQLite-v5.0.4/Build.PL   2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/Build.PL   2021-06-16 03:18:44.000000000 
+0200
@@ -84,7 +84,7 @@
         "Dan Book <dbook\@cpan.org>"
       ],
       "dist_name" => "Minion-Backend-SQLite",
-      "dist_version" => "v5.0.4",
+      "dist_version" => "v5.0.5",
       "license" => "artistic_2",
       "module_name" => "Minion::Backend::SQLite",
       "recursive_test_files" => 1,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/Changes 
new/Minion-Backend-SQLite-v5.0.5/Changes
--- old/Minion-Backend-SQLite-v5.0.4/Changes    2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/Changes    2021-06-16 03:18:44.000000000 
+0200
@@ -1,3 +1,7 @@
+v5.0.5    2021-06-15 21:18:41 EDT
+  - Support min_priority option in dequeue method.
+  - Update IRC metadata to libera.chat
+
 v5.0.4    2021-02-16 13:30:11 EST
   - Use Mojo::Promise in tests instead of the deprecated and decored 
Mojo::IOLoop::Delay (#17, Stefan Adams)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/INSTALL 
new/Minion-Backend-SQLite-v5.0.5/INSTALL
--- old/Minion-Backend-SQLite-v5.0.4/INSTALL    2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/INSTALL    2021-06-16 03:18:44.000000000 
+0200
@@ -21,8 +21,11 @@
 
 ## Manual installation
 
-As a last resort, you can manually install it. Download the tarball, untar it,
-install configure prerequisites (see below), then build it:
+As a last resort, you can manually install it. If you have not already
+downloaded the release tarball, you can find the download link on the module's
+MetaCPAN page: https://metacpan.org/pod/Minion::Backend::SQLite
+
+Untar the tarball, install configure prerequisites (see below), then build it:
 
     % perl Build.PL
     % ./Build && ./Build test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/META.json 
new/Minion-Backend-SQLite-v5.0.5/META.json
--- old/Minion-Backend-SQLite-v5.0.4/META.json  2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/META.json  2021-06-16 03:18:44.000000000 
+0200
@@ -64,7 +64,7 @@
    "provides" : {
       "Minion::Backend::SQLite" : {
          "file" : "lib/Minion/Backend/SQLite.pm",
-         "version" : "v5.0.4"
+         "version" : "v5.0.5"
       }
    },
    "release_status" : "stable",
@@ -78,16 +78,16 @@
          "url" : "https://github.com/Grinnz/Minion-Backend-SQLite.git";,
          "web" : "https://github.com/Grinnz/Minion-Backend-SQLite";
       },
-      "x_IRC" : "irc://irc.freenode.net/#mojo"
+      "x_IRC" : "ircs://irc.libera.chat/#mojo"
    },
-   "version" : "v5.0.4",
+   "version" : "v5.0.5",
    "x_contributors" : [
       "Dan Book <gri...@grinnz.com>",
       "Stefan Adams <s1037...@gmail.com>",
       "yrjustice <43676784+yrjust...@users.noreply.github.com>"
    ],
-   "x_generated_by_perl" : "v5.32.0",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.25",
+   "x_generated_by_perl" : "v5.34.0",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.26",
    "x_spdx_expression" : "Artistic-2.0"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/META.yml 
new/Minion-Backend-SQLite-v5.0.5/META.yml
--- old/Minion-Backend-SQLite-v5.0.4/META.yml   2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/META.yml   2021-06-16 03:18:44.000000000 
+0200
@@ -26,7 +26,7 @@
 provides:
   Minion::Backend::SQLite:
     file: lib/Minion/Backend/SQLite.pm
-    version: v5.0.4
+    version: v5.0.5
 requires:
   List::Util: '0'
   Minion: '10.13'
@@ -36,15 +36,15 @@
   Time::HiRes: '0'
   perl: '5.010001'
 resources:
-  IRC: irc://irc.freenode.net/#mojo
+  IRC: ircs://irc.libera.chat/#mojo
   bugtracker: https://github.com/Grinnz/Minion-Backend-SQLite/issues
   homepage: https://github.com/Grinnz/Minion-Backend-SQLite
   repository: https://github.com/Grinnz/Minion-Backend-SQLite.git
-version: v5.0.4
+version: v5.0.5
 x_contributors:
   - 'Dan Book <gri...@grinnz.com>'
   - 'Stefan Adams <s1037...@gmail.com>'
   - 'yrjustice <43676784+yrjust...@users.noreply.github.com>'
-x_generated_by_perl: v5.32.0
+x_generated_by_perl: v5.34.0
 x_serialization_backend: 'YAML::Tiny version 1.73'
 x_spdx_expression: Artistic-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/README 
new/Minion-Backend-SQLite-v5.0.5/README
--- old/Minion-Backend-SQLite-v5.0.4/README     2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/README     2021-06-16 03:18:44.000000000 
+0200
@@ -88,6 +88,12 @@
 
       Dequeue a specific job.
 
+    min_priority
+
+        min_priority => 3
+
+      Do not dequeue jobs with a lower priority.
+
     queues
 
         queues => ['important']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/dist.ini 
new/Minion-Backend-SQLite-v5.0.5/dist.ini
--- old/Minion-Backend-SQLite-v5.0.4/dist.ini   2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/dist.ini   2021-06-16 03:18:44.000000000 
+0200
@@ -7,5 +7,5 @@
 [@Author::DBOOK]
 :version = v1.0.3
 installer = ModuleBuildTiny::Fallback
-irc = irc://irc.freenode.net/#mojo
+irc = ircs://irc.libera.chat/#mojo
 pod_tests = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Minion-Backend-SQLite-v5.0.4/lib/Minion/Backend/SQLite.pm 
new/Minion-Backend-SQLite-v5.0.5/lib/Minion/Backend/SQLite.pm
--- old/Minion-Backend-SQLite-v5.0.4/lib/Minion/Backend/SQLite.pm       
2021-02-16 19:30:14.000000000 +0100
+++ new/Minion-Backend-SQLite-v5.0.5/lib/Minion/Backend/SQLite.pm       
2021-06-16 03:18:44.000000000 +0200
@@ -8,7 +8,7 @@
 use Sys::Hostname 'hostname';
 use Time::HiRes 'usleep';
 
-our $VERSION = 'v5.0.4';
+our $VERSION = 'v5.0.5';
 
 has dequeue_interval => 0.5;
 has 'sqlite';
@@ -416,10 +416,10 @@
            when 'failed' then not j.lax
            when 'inactive' then (parent.expires is null or parent.expires > 
datetime('now'))
          end
-       )) and queue in ($queues_in) and state = 'inactive' and task in 
($tasks_in)
-       and (expires is null or expires > datetime('now'))
+       )) and priority >= coalesce(?, priority) and queue in ($queues_in) and 
state = 'inactive'
+       and task in ($tasks_in) and (expires is null or expires > 
datetime('now'))
        order by priority desc, id
-       limit 1}, $options->{id}, @$queues, @$tasks
+       limit 1}, $options->{id}, $options->{min_priority}, @$queues, @$tasks
   );
   my $job_id = ($res->arrays->first // [])->[0] // return undef;
   $db->query(
@@ -547,6 +547,12 @@
 
 Dequeue a specific job.
 
+=item min_priority
+
+  min_priority => 3
+
+Do not dequeue jobs with a lower priority.
+
 =item queues
 
   queues => ['important']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Minion-Backend-SQLite-v5.0.4/t/sqlite.t 
new/Minion-Backend-SQLite-v5.0.5/t/sqlite.t
--- old/Minion-Backend-SQLite-v5.0.4/t/sqlite.t 2021-02-16 19:30:14.000000000 
+0100
+++ new/Minion-Backend-SQLite-v5.0.5/t/sqlite.t 2021-06-16 03:18:44.000000000 
+0200
@@ -736,6 +736,28 @@
   is $job->info->{retries},  2, 'job has been retried twice';
   is $job->info->{priority}, 0, 'low priority';
   ok $job->finish, 'job finished';
+
+  $id = $minion->enqueue(add => [2, 6], {priority => 2});
+  ok !$worker->dequeue(0, {min_priority => 5});
+  ok !$worker->dequeue(0, {min_priority => 3});
+  ok $job = $worker->dequeue(0, {min_priority => 2});
+  is $job->id, $id, 'right id';
+  is $job->info->{priority}, 2, 'expected priority';
+  ok $job->finish, 'job finished';
+  $minion->enqueue(add => [2, 8], {priority => 0});
+  $minion->enqueue(add => [2, 7], {priority => 5});
+  $minion->enqueue(add => [2, 8], {priority => -2});
+  ok !$worker->dequeue(0, {min_priority => 6});
+  ok $job = $worker->dequeue(0, {min_priority => 0});
+  is $job->info->{priority}, 5, 'expected priority';
+  ok $job->finish, 'job finished';
+  ok $job = $worker->dequeue(0, {min_priority => 0});
+  is $job->info->{priority}, 0, 'expected priority';
+  ok $job->finish, 'job finished';
+  ok !$worker->dequeue(0, {min_priority => 0});
+  ok $job = $worker->dequeue(0, {min_priority => -10});
+  is $job->info->{priority}, -2, 'expected priority';
+  ok $job->finish, 'job finished';
   $worker->unregister;
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Minion-Backend-SQLite-v5.0.4/xt/author/sqlite_admin.t 
new/Minion-Backend-SQLite-v5.0.5/xt/author/sqlite_admin.t
--- old/Minion-Backend-SQLite-v5.0.4/xt/author/sqlite_admin.t   2021-02-16 
19:30:14.000000000 +0100
+++ new/Minion-Backend-SQLite-v5.0.5/xt/author/sqlite_admin.t   2021-06-16 
03:18:44.000000000 +0200
@@ -93,7 +93,6 @@
   
$t->get_ok('/minion/epoch/epoch.js')->status_is(200)->content_type_is('application/javascript');
   
$t->get_ok('/minion/epoch/epoch.css')->status_is(200)->content_type_is('text/css');
   
$t->get_ok('/minion/fontawesome/fontawesome.css')->status_is(200)->content_type_is('text/css');
-  $t->get_ok('/minion/popper/popper.js')->status_is(200) 
->content_type_is('application/javascript');
   $t->get_ok('/minion/webfonts/fa-brands-400.eot')->status_is(200);
   $t->get_ok('/minion/webfonts/fa-brands-400.svg')->status_is(200);
   $t->get_ok('/minion/webfonts/fa-brands-400.ttf')->status_is(200);

Reply via email to