Qudo::Job - Qudo job class
# You don't need to create job object by yourself.
Qudo::Job object is passed to your worker and some hook points.
Returns job id.
Returns the job unique key.
Returns the function id of the job.
Returns the function name of the job.
Returns how many times the job is retried.
Returns time when job is grabbed.
Returns the priority of the job.
Returns the job argument.
Returns the original argument before a serializer change.
Returns the database the job belonging.
Returns Qudo manager.
Returns time when job started.
Set job as completed successfully.
If job is completed, returns true.
If job is aborted, returns true.
If job is failed, returns true.
Returns error message set in failed or abort
$job->failed($reason);
Don't use this method in your worker class. Use die instead of this. $reason is set as error and logged in exception_log.
$job->abort($reason);
This aborts job. When this method is called, the job never retried even if you set retry_cnt is set. But, if you override work_safely in Qudo::Worker, it is depends on your implementation. $reason is set as error and logged in exception_log.
$job->replace(['Worker::One', {arg => 'arg1'}], ['Worker::Another', {arg => 'arg2'}]);
This enqueue new job(s) and current job itself is completed.
To install Qudo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Qudo
CPAN shell
perl -MCPAN -e shell install Qudo
For more information on module installation, please visit the detailed CPAN module installation guide.