PHP 7.4.0beta4 released!

GearmanJob::unique

(PECL gearman >= 0.5.0)

GearmanJob::uniqueGet the unique identifier

Açıklama

public GearmanJob::unique ( void ) : string

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

Değiştirgeler

Bu işlevin değiştirgesi yoktur.

Dönen Değerler

An opaque unique identifier.

Ayrıca Bakınız

add a note add a note

User Contributed Notes 1 note

up
3
ben dot paulsen at myedu dot com
7 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 ...

<?php
  $worker
= new GearmanWorker();
 
$worker->addServer();
 
$worker->addOptions(GEARMAN_WORKER_GRAB_UNIQ);
?>
To Top