NAME
Job::Machine::Base - Base class both for Client and Worker Classes
METHODS
new
my $client = Job::Machine::Base->new(
dbh => $dbh,
jobclass => 'queue',
);
my $client = Job::Machine::Base->new(
dsn => @dsn,
);
Arguments:
Either provide an already warm database handle, or give a new array to tell how to open a database.
jobclass is the channel to the worker.
timeout is how long to wait for notifications before doing a housekeeping loop.
Default is 5 minutes.
log
Give it a text and it will log it.
db
Returns the database handle.
AUTHOR
Kaare Rasmussen <kaare@cpan.org>.
COPYRIGHT
Copyright (C) 2010, Kaare Rasmussen
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.