downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

GearmanJob::warning> <GearmanJob::status
[edit] Last updated: Fri, 17 May 2013

view this page in

GearmanJob::unique

(PECL gearman >= 0.5.0)

GearmanJob::uniqueGet the unique identifier

Descrição

public string GearmanJob::unique ( void )

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

An opaque unique identifier.

Veja Também



add a note add a note User Contributed Notes GearmanJob::unique - [1 notes]
up
0
ben dot paulsen at myedu dot com
1 year ago
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);
?>

 
show source | credits | sitemap | contact | advertising | mirror sites