GearmanTask
class GearmanTask (View source)
Class: GearmanTask
Methods
Returns the last Gearman return code for this task.
Returns the name of the function this task is associated with, i.e., the function the Gearman worker calls.
Returns the unique identifier for this task. This is assigned by the GearmanClient, as opposed to the job handle which is set by the Gearman job server.
Returns the job handle for this task.
Gets the status information for whether or not this task is known to the job server.
Indicates whether or not this task is currently running.
Returns the numerator of the percentage of the task that is complete expressed as a fraction.
Returns the denominator of the percentage of the task that is complete expressed as a fraction.
No description
Returns data being returned for a task by a worker.
Returns the size of the data being returned for a task.
No description
Details
int
returnCode()
Returns the last Gearman return code for this task.
string
functionName()
Returns the name of the function this task is associated with, i.e., the function the Gearman worker calls.
string|false
unique()
Returns the unique identifier for this task. This is assigned by the GearmanClient, as opposed to the job handle which is set by the Gearman job server.
string
jobHandle()
Returns the job handle for this task.
bool
isKnown()
Gets the status information for whether or not this task is known to the job server.
bool
isRunning()
Indicates whether or not this task is currently running.
int|false
taskNumerator()
Returns the numerator of the percentage of the task that is complete expressed as a fraction.
int|false
taskDenominator()
Returns the denominator of the percentage of the task that is complete expressed as a fraction.
int|false
sendWorkload(string $data)
.
string|false
data()
Returns data being returned for a task by a worker.
int|false
dataSize()
Returns the size of the data being returned for a task.
array|false
recvData(int $data_len)
.