NAME
Sque::Worker - Does the hard work of babysitting Sque::Job's
VERSION
version 0.009
ATTRIBUTES
sque
The Sque object running this worker.
queues
Queues this worker should fetch jobs from.
verbose
Set to a true value to make this worker report what's doing while on work().
METHODS
work
Calling this method will make this worker to start pulling & running jobs from queues().
This is the main wheel and will run while shutdown() is false.
perform
Call perform() on the given Sque::Job capturing and reporting any exception.
reserve
Call reserve() to return the next job popped of the queue(s)
add_queues
Add a queue this worker should listen to.
log
If verbose() is true, this will print to STDERR.
AUTHOR
William Wolf <throughnothing@gmail.com>
COPYRIGHT AND LICENSE
William Wolf has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.