Hello community, here is the log from the commit of package perl-Minion for openSUSE:Factory checked in at 2017-11-15 16:53:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Minion (Old) and /work/SRC/openSUSE:Factory/.perl-Minion.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Minion" Wed Nov 15 16:53:54 2017 rev:33 rq:539963 version:7.09 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Minion/perl-Minion.changes 2017-10-26 18:46:31.237968109 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Minion.new/perl-Minion.changes 2017-11-15 16:53:58.316449027 +0100 @@ -1,0 +2,10 @@ +Fri Oct 27 05:32:15 UTC 2017 - [email protected] + +- updated to 7.09 + see /usr/share/doc/packages/perl-Minion/Changes + + 7.09 2017-10-20 + - Fixed a deadlock problem in Minion::Backend::Pg where jobs could fail if two + processes tried to acquire the same lock at the same time. + +------------------------------------------------------------------- Old: ---- Minion-7.08.tar.gz New: ---- Minion-7.09.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Minion.spec ++++++ --- /var/tmp/diff_new_pack.57atPv/_old 2017-11-15 16:53:59.720397588 +0100 +++ /var/tmp/diff_new_pack.57atPv/_new 2017-11-15 16:53:59.720397588 +0100 @@ -17,7 +17,7 @@ Name: perl-Minion -Version: 7.08 +Version: 7.09 Release: 0 %define cpan_name Minion Summary: Job queue ++++++ Minion-7.08.tar.gz -> Minion-7.09.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-7.08/Changes new/Minion-7.09/Changes --- old/Minion-7.08/Changes 2017-10-18 12:25:15.000000000 +0200 +++ new/Minion-7.09/Changes 2017-10-21 04:07:27.000000000 +0200 @@ -1,3 +1,6 @@ +7.09 2017-10-20 + - Fixed a deadlock problem in Minion::Backend::Pg where jobs could fail if two + processes tried to acquire the same lock at the same time. 7.08 2017-10-18 - Fixed a bug in the worker command where processing jobs could be diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-7.08/META.json new/Minion-7.09/META.json --- old/Minion-7.08/META.json 2017-10-18 12:27:10.000000000 +0200 +++ new/Minion-7.09/META.json 2017-10-21 15:02:02.000000000 +0200 @@ -54,6 +54,6 @@ }, "x_IRC" : "irc://irc.perl.org/#mojo" }, - "version" : "7.08", + "version" : "7.09", "x_serialization_backend" : "JSON::PP version 2.94" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-7.08/META.yml new/Minion-7.09/META.yml --- old/Minion-7.08/META.yml 2017-10-18 12:27:10.000000000 +0200 +++ new/Minion-7.09/META.yml 2017-10-21 15:02:02.000000000 +0200 @@ -27,5 +27,5 @@ homepage: http://mojolicious.org license: http://www.opensource.org/licenses/artistic-license-2.0 repository: https://github.com/kraih/minion.git -version: '7.08' +version: '7.09' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-7.08/lib/Minion/Backend/Pg.pm new/Minion-7.09/lib/Minion/Backend/Pg.pm --- old/Minion-7.08/lib/Minion/Backend/Pg.pm 2017-08-01 11:44:20.000000000 +0200 +++ new/Minion-7.09/lib/Minion/Backend/Pg.pm 2017-10-21 02:10:42.000000000 +0200 @@ -957,12 +957,23 @@ name text not null, expires timestamp with time zone not null ); -create function minion_lock(text, int, int) returns bool as $$ + +-- 16 down +drop table if exists minion_locks; + +-- 17 up +alter table minion_jobs add column notes jsonb + check(jsonb_typeof(notes) = 'object') not null default '{}'; +alter table minion_locks set unlogged; +create index on minion_locks (name, expires); + +-- 18 up +create or replace function minion_lock(text, int, int) returns bool as $$ declare new_expires timestamp with time zone = now() + (interval '1 second' * $2); begin - delete from minion_locks where expires < now(); lock table minion_locks in exclusive mode; + delete from minion_locks where expires < now(); if (select count(*) >= $3 from minion_locks where name = $1) then return false; end if; @@ -973,12 +984,5 @@ end; $$ language plpgsql; --- 16 down +-- 18 down drop function if exists minion_lock(text, int, int); -drop table if exists minion_locks; - --- 17 up -alter table minion_jobs add column notes jsonb - check(jsonb_typeof(notes) = 'object') not null default '{}'; -alter table minion_locks set unlogged; -create index on minion_locks (name, expires); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-7.08/lib/Minion.pm new/Minion-7.09/lib/Minion.pm --- old/Minion-7.08/lib/Minion.pm 2017-10-12 10:29:24.000000000 +0200 +++ new/Minion-7.09/lib/Minion.pm 2017-10-20 23:30:16.000000000 +0200 @@ -16,7 +16,7 @@ has remove_after => 172800; has tasks => sub { {} }; -our $VERSION = '7.08'; +our $VERSION = '7.09'; sub add_task { ($_[0]->tasks->{$_[1]} = $_[2]) and return $_[0] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-7.08/t/pg.t new/Minion-7.09/t/pg.t --- old/Minion-7.08/t/pg.t 2017-10-11 23:12:53.000000000 +0200 +++ new/Minion-7.09/t/pg.t 2017-10-20 23:30:16.000000000 +0200 @@ -24,11 +24,11 @@ isa_ok $worker->minion->app, 'Mojolicious', 'has default application'; # Migrate up and down -is $minion->backend->pg->migrations->active, 17, 'active version is 17'; +is $minion->backend->pg->migrations->active, 18, 'active version is 18'; is $minion->backend->pg->migrations->migrate(0)->active, 0, 'active version is 0'; -is $minion->backend->pg->migrations->migrate->active, 17, - 'active version is 17'; +is $minion->backend->pg->migrations->migrate->active, 18, + 'active version is 18'; # Register and unregister $worker->register;
