Results of 1 - 10 of about 120 for gearman (0.001 sec.)
- 定義済み定数 | PHP 8.3 15076
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Return values. Always check GearmanClient::error() or GearmanWorker() for a s
... tring error, as it may contain more details: GEARMAN_SUCCESS ( int ) Whatever action was taken was successful. GEARMAN_IO_WAIT ( int ) When in non-blocking mode, an event is h ... it that would have blocked. GEARMAN_ERRNO ( int ) A system error. Check GearmanClient::errno() or GearmanWorker::errno() for the system error code that was re ... turned. GEARMAN_NO_ACTIVE_FDS ( int ) GearmanClient::wait() or GearmanWorker() was called with no connections. GEARMAN_UNEXPECTED_PACKET ( ...
-
https://man.mtool.work/php/8.3/gearman.constants.html
- GearmanWorker::wait — Wait for activity from one of the job servers | PHP 8.3 9525
- GearmanWorker::wait (PECL gearman >= 0.6.0) GearmanWorker::wait — Wait for activity from one of the job servers 説明 public function GearmanWorker::wait (): bool Causes the worker to wait for activity from one of the Gearman job servers whe
... n operating in non-blocking I/O mode. On failure, issues a E_WARNING with the last Gearman error encountered. パラメータ この関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返 ... します。 例 例1 Running worker in non-blocking mode <?php echo "Starting\n" ; # Create our worker object $worker = new GearmanWorker (); # Make the worker non-blocking $worker -> addOptions ( GEARMAN_WORKER_NON_BLOCKING ); # Add the default server ( ... > addFunction ( 'reverse' , 'reverse_fn' ); # Try to grab a job while (@ $worker -> work () || $worker -> returnCode () == GEARMAN_IO_WAIT || $worker -> returnCode () == GEARMAN_NO_JOBS ) { if ( $worker -> returnCode () == GEARMAN_SUCCESS ) continue; ec ...
-
https://man.mtool.work/php/8.3/gearmanworker.wait.html
- GearmanClient::addOptions — Add client options | PHP 8.3 9177
- GearmanClient::addOptions (PECL gearman >= 0.6.0) GearmanClient::addOptions — Add client options 説明 public function GearmanClient::addOptions ( int $option ): bool Adds one or more options to those already set. パラメータ option The optio
... ns to add. One of the following constants, or a combination of them using the bitwise OR operator ( | ): GEARMAN_CLIENT_GENERATE_UNIQUE , GEARMAN_CLIENT_NON_BLOCKING , GEARMAN_CLIENT_UNBUFFERED_RESULT or GEARMAN_CLIENT_FREE_TASKS . 戻り ...
-
https://man.mtool.work/php/8.3/gearmanclient.addoptions.html
- GearmanClient::returnCode — Get the last Gearman return code | PHP 8.3 8730
- GearmanClient::returnCode (PECL gearman >= 0.5.0) GearmanClient::returnCode — Get the last Gearman return code 説明 public function GearmanClient::returnCode (): int Returns the last Gearman return code. パラメータ この関数にはパラメータはあ
... りません。 戻り値 A valid Gearman return code. ...
-
https://man.mtool.work/php/8.3/gearmanclient.returncode.html
- GearmanJob::setReturn — Set a return value | PHP 8.3 8730
- GearmanJob::setReturn (PECL gearman >= 0.5.0) GearmanJob::setReturn — Set a return value 説明 public function GearmanJob::setReturn ( int $gearman_return_t ): bool Sets the return value for this job, indicates how the job completed. パラメー
... タ gearman_return_t A valid Gearman return value. 戻り値 Description... ...
-
https://man.mtool.work/php/8.3/gearmanjob.setreturn.html
- GearmanWorker::returnCode — Get last Gearman return code | PHP 8.3 8556
- GearmanWorker::returnCode (PECL gearman >= 0.5.0) GearmanWorker::returnCode — Get last Gearman return code 説明 public function GearmanWorker::returnCode (): int Returns the last Gearman return code. パラメータ この関数にはパラメータはありま
... せん。 戻り値 A valid Gearman return code. 参考 GearmanWorker::error() - Get the last error encountered GearmanWorker::getErrno() - Get errno ...
-
https://man.mtool.work/php/8.3/gearmanworker.returncode.html
- GearmanTask::returnCode — Get the last return code | PHP 8.3 8444
- GearmanTask::returnCode (PECL gearman >= 0.5.0) GearmanTask::returnCode — Get the last return code 説明 public function GearmanTask::returnCode (): int Returns the last Gearman return code for this task. パラメータ この関数にはパラメータはあ
... りません。 戻り値 A valid Gearman return code. 参考 GearmanClient::returnCode() - Get the last Gearman return code 他のマニュアルの関連ページ FastAPI Respon ...
-
https://man.mtool.work/php/8.3/gearmantask.returncode.html
- GearmanWorker::work — Wait for and perform jobs | PHP 8.3 8221
- GearmanWorker::work (PECL gearman >= 0.5.0) GearmanWorker::work — Wait for and perform jobs 説明 public function GearmanWorker::work (): bool Waits for a job to be assigned and then calls the appropriate callback function. Issues an E_WARNI
... NG with the last Gearman error if the return code is not one of GEARMAN_SUCCESS , GEARMAN_IO_WAIT , or GEARMAN_WORK_FAIL . パラメータ この関数にはパ ... ラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 GearmanWorker::work() example <?php # create the worker $worker = new GearmanWorker (); # add the default job server (localhost) $ ... sions while ( $worker -> work ()); function my_reverse_function ( $job ) { return strrev ( $job -> workload ()); } ?> 参考 GearmanWorker::addFunction() - Register and add callback function 他のマニュアルの関連ページ Linux JM wait(2) Django 1.5.7 Django ...
-
https://man.mtool.work/php/8.3/gearmanworker.work.html
- GearmanClient::do — Run a single task and return a result [deprecated] | PHP 8.... 8159
- GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprecated] 説明 public function GearmanClient::do ( string $function_name , string $workload , string $unique = ? ): string The GearmanCli
... ent::do() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::doNormal() . パラメータ function_name ワーカーが実行するために登録した関数。 workload シリアライ ... e job submission with immediate return <?php # Client code echo "Starting\n" ; # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; $result = $gmclient -> doNor ... verse" , "Hello!" ); echo "Success: $result \n" ; ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. Chan ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- GearmanClient::doStatus — Get the status for the running task | PHP 8.3 8159
- GearmanClient::doStatus (PECL gearman >= 0.5.0) GearmanClient::doStatus — Get the status for the running task 説明 public function GearmanClient::doStatus (): array Returns the status for the running task. This should be used between repeat
... ed GearmanClient::doNormal() calls. パラメータ この関数にはパラメータはありません。 戻り値 An array representing the percentage compl ... er in this example has an artificial delay added during processing of the string to be reversed. After each delay it calls GearmanJob::status() which the client then picks up. <?php echo "Starting\n" ; # Create our client object. $gmclient = new Gearman ... Normal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { case GEARMAN_WORK_DATA : break; case GEARMAN_WORK_STATUS : # get the current job status list( $numerator , $denominator )= $gmclient -> ...
-
https://man.mtool.work/php/8.3/gearmanclient.dostatus.html