Hello community, here is the log from the commit of package perl-Minion for openSUSE:Factory checked in at 2015-11-15 12:46:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Minion (Old) and /work/SRC/openSUSE:Factory/.perl-Minion.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Minion" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Minion/perl-Minion.changes 2015-11-12 19:41:27.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Minion.new/perl-Minion.changes 2015-11-15 12:48:10.000000000 +0100 @@ -1,0 +2,10 @@ +Sat Nov 14 09:57:23 UTC 2015 - [email protected] + +- updated to 4.01 + see /usr/share/doc/packages/perl-Minion/Changes + + 4.01 2015-11-12 + - Improved retry methods to allow options to be changed for already inactive + jobs. + +------------------------------------------------------------------- Old: ---- Minion-4.0.tar.gz New: ---- Minion-4.01.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Minion.spec ++++++ --- /var/tmp/diff_new_pack.qI1lpi/_old 2015-11-15 12:48:11.000000000 +0100 +++ /var/tmp/diff_new_pack.qI1lpi/_new 2015-11-15 12:48:11.000000000 +0100 @@ -17,7 +17,7 @@ Name: perl-Minion -Version: 4.0 +Version: 4.01 Release: 0 %define cpan_name Minion Summary: Job queue ++++++ Minion-4.0.tar.gz -> Minion-4.01.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/Changes new/Minion-4.01/Changes --- old/Minion-4.0/Changes 2015-11-09 13:30:50.000000000 +0100 +++ new/Minion-4.01/Changes 2015-11-12 02:10:48.000000000 +0100 @@ -1,4 +1,8 @@ +4.01 2015-11-12 + - Improved retry methods to allow options to be changed for already inactive + jobs. + 4.0 2015-11-09 - Removed attempts attribute from Minion::Job. - Improved Minion::Backend::Pg to preserve more information across retries for diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/META.json new/Minion-4.01/META.json --- old/Minion-4.0/META.json 2015-11-09 18:12:45.000000000 +0100 +++ new/Minion-4.01/META.json 2015-11-12 03:56:38.000000000 +0100 @@ -54,5 +54,5 @@ }, "x_IRC" : "irc://irc.perl.org/#mojo" }, - "version" : "4.0" + "version" : "4.01" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/META.yml new/Minion-4.01/META.yml --- old/Minion-4.0/META.yml 2015-11-09 18:12:45.000000000 +0100 +++ new/Minion-4.01/META.yml 2015-11-12 03:56:38.000000000 +0100 @@ -27,4 +27,4 @@ homepage: http://mojolicio.us license: http://www.opensource.org/licenses/artistic-license-2.0 repository: https://github.com/kraih/minion.git -version: '4.0' +version: '4.01' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/README.md new/Minion-4.01/README.md --- old/Minion-4.0/README.md 2015-10-30 21:35:50.000000000 +0100 +++ new/Minion-4.01/README.md 2015-11-11 15:44:22.000000000 +0100 @@ -34,7 +34,7 @@ ## Installation - All you need is a oneliner, it takes less than a minute. + All you need is a one-liner, it takes less than a minute. $ curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Minion diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/lib/Minion/Backend/Pg.pm new/Minion-4.01/lib/Minion/Backend/Pg.pm --- old/Minion-4.0/lib/Minion/Backend/Pg.pm 2015-11-09 16:16:53.000000000 +0100 +++ new/Minion-4.01/lib/Minion/Backend/Pg.pm 2015-11-12 02:04:39.000000000 +0100 @@ -137,7 +137,8 @@ set priority = coalesce(?, priority), queue = coalesce(?, queue), retried = now(), retries = retries + 1, state = 'inactive', delayed = (now() + (interval '1 second' * ?)) - where id = ? and retries = ? and state in ('failed', 'finished') + where id = ? and retries = ? + and state in ('failed', 'finished', 'inactive') returning 1", @$options{qw(priority queue)}, $options->{delay} // 0, $id, $retries )->rows; @@ -532,7 +533,8 @@ my $bool = $backend->retry_job($job_id, $retries); my $bool = $backend->retry_job($job_id, $retries, {delay => 10}); -Transition from C<failed> or C<finished> state back to C<inactive>. +Transition from C<failed> or C<finished> state back to C<inactive>, already +C<inactive> jobs may also be retried to change options. These options are currently available: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/lib/Minion/Backend.pm new/Minion-4.01/lib/Minion/Backend.pm --- old/Minion-4.0/lib/Minion/Backend.pm 2015-11-09 16:08:23.000000000 +0100 +++ new/Minion-4.01/lib/Minion/Backend.pm 2015-11-12 02:03:45.000000000 +0100 @@ -357,8 +357,9 @@ my $bool = $backend->retry_job($job_id, $retries); my $bool = $backend->retry_job($job_id, $retries, {delay => 10}); -Transition from C<failed> or C<finished> state back to C<inactive>. Meant to be -overloaded in a subclass. +Transition from C<failed> or C<finished> state back to C<inactive>, already +C<inactive> jobs may also be retried to change options. Meant to be overloaded +in a subclass. These options are currently available: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/lib/Minion/Job.pm new/Minion-4.01/lib/Minion/Job.pm --- old/Minion-4.0/lib/Minion/Job.pm 2015-11-09 13:24:10.000000000 +0100 +++ new/Minion-4.01/lib/Minion/Job.pm 2015-11-12 02:04:08.000000000 +0100 @@ -329,7 +329,8 @@ my $bool = $job->retry; my $bool = $job->retry({delay => 10}); -Transition from C<failed> or C<finished> state back to C<inactive>. +Transition from C<failed> or C<finished> state back to C<inactive>, already +C<inactive> jobs may also be retried to change options. These options are currently available: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/lib/Minion.pm new/Minion-4.01/lib/Minion.pm --- old/Minion-4.0/lib/Minion.pm 2015-11-09 16:21:05.000000000 +0100 +++ new/Minion-4.01/lib/Minion.pm 2015-11-09 18:13:09.000000000 +0100 @@ -16,7 +16,7 @@ has remove_after => 864000; has tasks => sub { {} }; -our $VERSION = '4.0'; +our $VERSION = '4.01'; sub add_task { ($_[0]->tasks->{$_[1]} = $_[2]) and return $_[0] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-4.0/t/pg.t new/Minion-4.01/t/pg.t --- old/Minion-4.0/t/pg.t 2015-11-09 13:30:50.000000000 +0100 +++ new/Minion-4.01/t/pg.t 2015-11-12 02:08:51.000000000 +0100 @@ -281,6 +281,12 @@ ok $job->remove, 'job has been removed'; is $job->info, undef, 'no information'; $id = $minion->enqueue(add => [6, 5]); +$job = $minion->job($id); +is $job->info->{state}, 'inactive', 'right state'; +is $job->info->{retries}, 0, 'job has not been retried'; +ok $job->retry, 'job retried'; +is $job->info->{state}, 'inactive', 'right state'; +is $job->info->{retries}, 1, 'job has been retried once'; $job = $worker->dequeue(0); is $job->id, $id, 'right id'; ok $job->fail, 'job failed';
