Hello community, here is the log from the commit of package perl-Minion for openSUSE:Factory checked in at 2017-03-24 02:23:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Minion (Old) and /work/SRC/openSUSE:Factory/.perl-Minion.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Minion" Fri Mar 24 02:23:24 2017 rev:23 rq:482157 version:6.04 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Minion/perl-Minion.changes 2017-03-16 09:51:47.915552382 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Minion.new/perl-Minion.changes 2017-03-24 02:23:26.680867167 +0100 @@ -1,0 +2,11 @@ +Tue Mar 21 07:14:20 UTC 2017 - co...@suse.com + +- updated to 6.04 + see /usr/share/doc/packages/perl-Minion/Changes + + 6.04 2017-03-18 + - Added -f option to worker command. + - Removed -r option from job command, so you have to write --remove from now + on, which should prevent accidental mixups with the -R option in the future. + +------------------------------------------------------------------- Old: ---- Minion-6.03.tar.gz New: ---- Minion-6.04.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Minion.spec ++++++ --- /var/tmp/diff_new_pack.vSa7zy/_old 2017-03-24 02:23:27.168798128 +0100 +++ /var/tmp/diff_new_pack.vSa7zy/_new 2017-03-24 02:23:27.172797563 +0100 @@ -17,7 +17,7 @@ Name: perl-Minion -Version: 6.03 +Version: 6.04 Release: 0 %define cpan_name Minion Summary: Job queue ++++++ Minion-6.03.tar.gz -> Minion-6.04.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-6.03/Changes new/Minion-6.04/Changes --- old/Minion-6.03/Changes 2017-03-14 18:03:18.000000000 +0100 +++ new/Minion-6.04/Changes 2017-03-18 16:16:36.000000000 +0100 @@ -1,4 +1,9 @@ +6.04 2017-03-18 + - Added -f option to worker command. + - Removed -r option from job command, so you have to write --remove from now + on, which should prevent accidental mixups with the -R option in the future. + 6.03 2017-03-14 - Fixed serious performance problems in Minion::Backend::Pg. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-6.03/META.json new/Minion-6.04/META.json --- old/Minion-6.03/META.json 2017-03-15 00:24:36.000000000 +0100 +++ new/Minion-6.04/META.json 2017-03-20 09:56:59.000000000 +0100 @@ -54,6 +54,6 @@ }, "x_IRC" : "irc://irc.perl.org/#mojo" }, - "version" : "6.03", + "version" : "6.04", "x_serialization_backend" : "JSON::PP version 2.27400" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-6.03/META.yml new/Minion-6.04/META.yml --- old/Minion-6.03/META.yml 2017-03-15 00:24:36.000000000 +0100 +++ new/Minion-6.04/META.yml 2017-03-20 09:56:59.000000000 +0100 @@ -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: '6.03' +version: '6.04' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-6.03/lib/Minion/Command/minion/job.pm new/Minion-6.04/lib/Minion/Command/minion/job.pm --- old/Minion-6.03/lib/Minion/Command/minion/job.pm 2016-09-19 16:40:27.000000000 +0200 +++ new/Minion-6.04/lib/Minion/Command/minion/job.pm 2017-03-18 16:01:43.000000000 +0100 @@ -24,7 +24,7 @@ 'p|priority=i' => \$options->{priority}, 'q|queue=s' => \$options->{queue}, 'R|retry' => \my $retry, - 'r|remove' => \my $remove, + 'remove' => \my $remove, 'S|state=s' => \$options->{state}, 's|stats' => \my $stats, 't|task=s' => \$options->{task}, @@ -97,7 +97,7 @@ ./myapp.pl minion job -e foo -a '[23, "bar"]' ./myapp.pl minion job -e foo -P 10023 -P 10024 -p 5 -q important ./myapp.pl minion job -R -d 10 10023 - ./myapp.pl minion job -r 10023 + ./myapp.pl minion job --remove 10023 ./myapp.pl minion job -b jobs -a '[12]' ./myapp.pl minion job -b jobs -a '[12]' 23 24 25 @@ -126,7 +126,7 @@ -q, --queue <name> Queue to put new job in, defaults to "default", or list only jobs in this queue -R, --retry Retry job - -r, --remove Remove job + --remove Remove job -S, --state <name> List only jobs in this state -s, --stats Show queue statistics -t, --task <name> List only jobs for this task diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-6.03/lib/Minion/Command/minion/worker.pm new/Minion-6.04/lib/Minion/Command/minion/worker.pm --- old/Minion-6.03/lib/Minion/Command/minion/worker.pm 2017-02-14 22:17:33.000000000 +0100 +++ new/Minion-6.04/lib/Minion/Command/minion/worker.pm 2017-03-18 16:16:39.000000000 +0100 @@ -12,11 +12,13 @@ GetOptionsFromArray \@args, 'C|command-interval=i' => \($self->{commands} = 10), + 'f|fast-start' => \my $fast, 'I|heartbeat-interval=i' => \($self->{heartbeat} = 60), 'j|jobs=i' => \($self->{max} = 4), 'q|queue=s' => \my @queues, 'R|repair-interval=i' => \($self->{repair} = 21600); $self->{queues} = @queues ? \@queues : ['default']; + $self->_next_repair if $fast; local $SIG{CHLD} = 'DEFAULT'; local $SIG{INT} = local $SIG{TERM} = sub { $self->{finished}++ }; @@ -38,6 +40,12 @@ $worker->unregister; } +sub _next_repair { + my $self = shift; + $self->{check} + = steady_time + ($self->{repair} - int rand $self->{repair} / 2); +} + sub _work { my $self = shift; @@ -55,8 +63,7 @@ my $app = $self->app; $app->log->debug('Checking worker registry and job queue'); $app->minion->repair; - $self->{check} - = steady_time + ($self->{repair} - int rand $self->{repair} / 2); + $self->_next_repair; } # Check if jobs are finished @@ -88,12 +95,15 @@ Usage: APPLICATION minion worker [OPTIONS] ./myapp.pl minion worker + ./myapp.pl minion worker -f ./myapp.pl minion worker -m production -I 15 -C 5 -R 3600 -j 10 ./myapp.pl minion worker -q important -q default Options: -C, --command-interval <seconds> Worker remote control command interval, defaults to 10 + -f, --fast-start Start processing jobs as fast as + possible and skip repairing on startup -h, --help Show this summary of available options --home <path> Path to home directory of your application, defaults to the value of @@ -107,8 +117,10 @@ MOJO_MODE/PLACK_ENV or "development" -q, --queue <name> One or more queues to get jobs from, defaults to "default" - -R, --repair-interval <seconds> Repair interval, defaults to 21600 - (6 hours) + -R, --repair-interval <seconds> Repair interval, up to half of this + value can be subtracted randomly to + make sure not all workers repair at the + same time, defaults to 21600 (6 hours) =head1 DESCRIPTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Minion-6.03/lib/Minion.pm new/Minion-6.04/lib/Minion.pm --- old/Minion-6.03/lib/Minion.pm 2017-03-14 18:01:28.000000000 +0100 +++ new/Minion-6.04/lib/Minion.pm 2017-03-15 00:25:05.000000000 +0100 @@ -16,7 +16,7 @@ has remove_after => 172800; has tasks => sub { {} }; -our $VERSION = '6.03'; +our $VERSION = '6.04'; sub add_task { ($_[0]->tasks->{$_[1]} = $_[2]) and return $_[0] }