-
-
05 Sep 2015 10:30:30 UTC
- Distribution: Job-Machine
- Module version: 0.26
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (717 / 3 / 0)
- Kwalitee
Bus factor: 0- 17.40% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (22.69KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Kaare Rasmussen <kaare at cpan dot net>
NAME
Job::Machine::Base
VERSION
version 0.26
NAME
Job::Machine::Base - Base class both for Client and Worker Classes
METHODS
new
my $client = Job::Machine::Base->new( dbh => $dbh, queue => 'queue', ); my $client = Job::Machine::Base->new( dsn => $dsn, user => $user, password => $password, db_attr => $db_attributes ... );
Worker:
my $worker = Job::Machine::Base->new( queue => [qw/q1 q2/], ... );
Arguments:
Either provide an already warm database handle, or give a new array to tell how to open a database.
Client: queue is the channel to the worker. Worker: queue is what the worker is listening to. Can be a scalar or arrayref. timeout is how long to wait for notifications before doing a housekeeping loop. Default is 5 minutes.
job_log
Give it a text and it will log it.
db
Returns the database handle.
AUTHOR
Kaare Rasmussen <kaare@cpan.org>.
COPYRIGHT
Copyright (C) 2009,2014, Kaare Rasmussen
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
AUTHOR
Kaare Rasmussen <kaare at cpan dot net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Kaare Rasmussen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Job::Machine, copy and paste the appropriate command in to your terminal.
cpanm Job::Machine
perl -MCPAN -e shell install Job::Machine
For more information on module installation, please visit the detailed CPAN module installation guide.