For Gearman PHP 1.1.1
sendData() only works for addTask.
It does not work with doNormal, doBackground or addTaskBackground submission types
GearmanJob::sendData
(PECL gearman >= 0.6.0)
GearmanJob::sendData — Send data for a running job
Descrierea
public bool GearmanJob::sendData
( string
$data
)Sends data to the job server (and any listening clients) for this job.
Parametri
-
data -
Arbitrary serialized data.
Valorile întoarse
Întoarce valoarea TRUE în cazul
succesului sau FALSE în cazul eșecului.
Vedeți de asemenea
- GearmanJob::workload() - Get workload
- GearmanTask::data() - Get data returned for a task
