PHP » GoLang |
login |
register |
about
|
GoLang GearmanClient::addTaskStatus
request it (243)
GoLang replacement for PHP's GearmanClient::addTaskStatus
[edit | history]
PHP GearmanClient::addTaskStatusPHP original manual for GearmanClient::addTaskStatus [ show | php.net ]GearmanClient::addTaskStatus(PECL gearman >= 0.5.0) GearmanClient::addTaskStatus — Add a task to get status DescriptionUsed to request status information from the Gearman server, which will call the specified status callback (set using GearmanClient::setStatusCallback()). Parameters
Return ValuesA GearmanTask object. Examples
Example #1 Monitor completion of multiple background tasks An artificial delay is introduced in the worker in this example to simulate a long running process. There is only one worker running for this example.
<?php The above example will output something similar to: Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 0 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 1 Done: 2 |
more
Recently updated
more
Most requested
|