PHP 7.2.7 Released


(PECL gearman >= 0.5.0)

GearmanJob::uniqueGet the unique identifier


public string GearmanJob::unique ( void )

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


Această funcție nu are parametri.

Valorile întoarse

An opaque unique identifier.

A se vedea și

add a note add a note

User Contributed Notes 1 note

ben dot paulsen at myedu dot com
6 years 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 ...

= new GearmanWorker();
To Top