GearmanJob::unique

(PECL gearman >= 0.5.0)

GearmanJob::uniqueGet the unique identifier

Description

public string GearmanJob::unique ( void )

Returns the unique identifiter for this job. The identifier is assigned by the client.

Parameters

This function has no parameters.

Return Values

An opaque unique identifier.

See Also

Коментарии

I think it's worth noting that this function will not return the unique id specified by a client request unless GEARMAN_WORKER_GRAB_UNIQ is specified as an option to the worker instance as follows ...

<?php
  $worker
= new GearmanWorker();
 
$worker->addServer();
 
$worker->addOptions(GEARMAN_WORKER_GRAB_UNIQ);
?>
2011-12-19 14:56:44
http://php5.kiev.ua/manual/ru/gearmanjob.unique.html

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