GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Qudo::Job(3) User Contributed Perl Documentation Qudo::Job(3)

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.

2016-02-27 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.