Name : perl-Minion
| |
Version : 7.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 58.1
| Date : 2017-06-20 08:24:47
|
Group : Development/Libraries/Perl
| Source RPM : perl-Minion-7.0-58.1.src.rpm
|
Size : 0.14 MB
| |
Packager : (none)
| |
Summary : Job queue
|
Description :
Minion is a job queue for the at http://mojolicious.org real-time web framework, with support for multiple named queues, priorities, delayed jobs, job dependencies, job results, retries with backoff, rate limiting, unique jobs, statistics, istributed workers, parallel processing, autoscaling, remote control, resource leak protection and multiple backends (such as at http://www.postgresql.org).
Job queues allow you to process time and/or computationally intensive tasks in background processes, outside of the request/response lifecycle. Among those tasks you\'ll commonly find image resizing, spam filtering, HTTP downloads, building tarballs, warming caches and basically everything else you can imagine that\'s not super fast.
use Mojolicious::Lite;
plugin Minion => {Pg => \'postgresql://sri:s3cretAATTlocalhost/test\'};
app->minion->add_task(poke_mojo => sub { my $job = shift; $job->app->ua->get(\'mojolicious.org\'); $job->app->log->debug(\'We have poked mojolicious.org for a visitor\'); });
get \'/\' => sub { my $c = shift; $c->minion->enqueue(\'poke_mojo\'); $c->render(text => \'We will poke mojolicious.org for you soon.\'); };
app->start;
Background worker processes are usually started with the command Minion::Command::minion::worker, which becomes automatically available when an application loads the plugin Mojolicious::Plugin::Minion.
$ ./myapp.pl minion worker
Jobs can be managed right from the command line with Minion::Command::minion::job.
$ ./myapp.pl minion job
To manage background worker processes with systemd, you can use a unit configuration file like this.
[Unit] Description=My Mojolicious application workers After=postgresql.service
[Service] Type=simple ExecStart=/home/sri/myapp/myapp.pl minion worker -m production KillMode=process
[Install] WantedBy=multi-user.target
Every job can fail or succeed, but not get lost, the system is eventually consistent and will preserve job results for as long as you like, depending on \"remove_after\". While individual workers can fail in the middle of processing a job, the system will detect this and ensure that no job is left in an uncertain state, depending on \"missing_after\".
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_13.2/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(LinkCheck)
perl(LinkCheck::Controller::Links)
perl(LinkCheck::Task::CheckLinks)
perl(Minion)
perl(Minion::Backend)
perl(Minion::Backend::Pg)
perl(Minion::Command::minion)
perl(Minion::Command::minion::job)
perl(Minion::Command::minion::worker)
perl(Minion::Job)
perl(Minion::Worker)
perl(Mojolicious::Plugin::Minion)
perl-Minion
Requires :