GearmanTask::jobHandle

gearman_job_handle

(PECL gearman >= 0.5.0)

GearmanTask::jobHandle -- gearman_job_handleGet the job handle

Description

public string GearmanTask::jobHandle ( void )

Returns the job handle for this task.

Parameters

This function has no parameters.

Return Values

The opaque job handle.

See Also

Коментарии

The job handle is not assigned until the task is received and queued by the job server, so you will need to use one of the client callbacks to access the handle:

<?php
$client
->setCreatedCallback(function ($task) {
   
var_dump($task->jobHandle()); // "H:server:1"
});
$task $client->addTask('function''workload');
var_dump($task->jobHandle()); // ""
2013-08-14 23:38:36
http://php5.kiev.ua/manual/ru/gearmantask.jobhandle.html

    Поддержать сайт на родительском проекте КГБ