NAME
Sque::Job - Sque job container
VERSION
version 0.010
ATTRIBUTES
sque
worker
Worker running this job. A new worker will be popped up from sque by default.
class
Class to be performed by this job.
queue
Name of the queue this job is or should be.
args
Array of arguments for this job.
payload
HashRef representation of the job. When passed to constructor, this will restore the job from encoded state. When passed as a string this will be coerced using JSON decoder. This is read-only.
frame
Raw stomp frame representing the job. This is read-only.
METHODS
encode
String representation(JSON) to be used on the backend.
stringify
queue_from_class
Normalize class name to be used as queue name. NOTE: future versions will try to get the queue name from the real class attr or $class::queue global variable.
perform
Load job class and call perform() on it. This job objet will be passed as the only argument.
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.