« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 13 for runTasks (0.002 sec.)
GearmanClient::runTasks — Run a list of tasks in parallel | PHP 8.3 12915
GearmanClient::runTasks (PECL gearman >= 0.5.0) GearmanClient::runTasks — Run a list of tasks in parallel 説明 public function GearmanClient::runTasks (): bool For a set of tasks previously added with GearmanClient::addTask() , GearmanClien ...
https://man.mtool.work/php/8.3/gearmanclient.runtasks.html
GearmanClient::addTask — Add a task to be run in parallel | PHP 8.3 10874
GearmanClient::addTask (PECL gearman >= 0.5.0) GearmanClient::addTask — Add a task to be run in parallel 説明 public function GearmanClient::addTask ( string $function_name , string | int | float $workload , mixed $context = null , ? string ... to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Note that enough workers need to be available for the tasks to all run in parallel. パラメータ func ... n the string "!dlroW olleH" $gmclient -> addTask ( "reverse" , "!dlroW olleH" , null , "2" ); # run the tasks $gmclient -> runTasks (); function complete ( $task ) { print "COMPLETE: " . $task -> unique () . ", " . $task -> data () . "\n" ; } ?> 上の例の ... rse" , "Hello World!" , $results , "t1" ); $client -> addTask ( "reverse" , "!dlroW olleH" , $results , "t2" ); $client -> runTasks (); # The results should now be filled in from the callbacks foreach ( $results as $id => $result ) echo $id . ": " . $res ...
https://man.mtool.work/php/8.3/gearmanclient.addtask.html
GearmanClient::addTaskHigh — Add a high priority task to run in parallel | PHP ... 9923
GearmanClient::addTaskHigh (PECL gearman >= 0.5.0) GearmanClient::addTaskHigh — Add a high priority task to run in parallel 説明 public function GearmanClient::addTaskHigh ( string $function_name , string | int | float $workload , mixed $co ... arallel with other tasks. Call this method for all the high priority tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks with a high priority will be selected from the queue before those of normal or low priority. ... verse" , "!dlroW olleH" , null , "2" ); $task = $gmc -> addTask ( "reverse" , "Hello World!" , null , "3" ); if (! $gmc -> runTasks ()) { echo "ERROR " . $gmc -> error () . "\n" ; exit; } echo "DONE\n" ; function reverse_complete ( $task ) { echo "COMPLE ... n parallel GearmanClient::addTaskLowBackground() - Add a low priority background task to be run in parallel GearmanClient::runTasks() - Run a list of tasks in parallel 他のマニュアルの関連ページ Python heapq Python asyncio-extending Python asyncio-queue ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskhigh.html
GearmanClient::addTaskLow — Add a low priority task to run in parallel | PHP 8.... 9923
GearmanClient::addTaskLow (PECL gearman >= 0.5.0) GearmanClient::addTaskLow — Add a low priority task to run in parallel 説明 public function GearmanClient::addTaskLow ( string $function_name , string | int | float $workload , mixed $contex ... to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks with a low priority will be selected from the queue after those of normal or low priority. パ ... verse" , "!dlroW olleH" , null , "2" ); $task = $gmc -> addTask ( "reverse" , "Hello World!" , null , "3" ); if (! $gmc -> runTasks ()) { echo "ERROR " . $gmc -> error () . "\n" ; exit; } echo "DONE\n" ; function reverse_complete ( $task ) { echo "COMPLE ... n parallel GearmanClient::addTaskLowBackground() - Add a low priority background task to be run in parallel GearmanClient::runTasks() - Run a list of tasks in parallel 他のマニュアルの関連ページ Python heapq Python asyncio-extending Python asyncio-queue ...
https://man.mtool.work/php/8.3/gearmanclient.addtasklow.html
GearmanClient::addTaskHighBackground — Add a high priority background task to b... 9290
GearmanClient::addTaskHighBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskHighBackground — Add a high priority background task to be run in parallel 説明 public function GearmanClient::addTaskHighBackground ( string $function_name ... to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks with a high priority will be selected from the queue before those of normal or low priority. ... n parallel GearmanClient::addTaskLowBackground() - Add a low priority background task to be run in parallel GearmanClient::runTasks() - Run a list of tasks in parallel 他のマニュアルの関連ページ Python asyncio-queue Python asyncio-extending Python queue ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskhighbackground.html
GearmanClient::addTaskLowBackground — Add a low priority background task to be ... 9290
GearmanClient::addTaskLowBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskLowBackground — Add a low priority background task to be run in parallel 説明 public function GearmanClient::addTaskLowBackground ( string $function_name , st ... to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks with a low priority will be selected from the queue after those of normal or high priority. パ ... parallel GearmanClient::addTaskHighBackground() - Add a high priority background task to be run in parallel GearmanClient::runTasks() - Run a list of tasks in parallel 他のマニュアルの関連ページ Python asyncio-queue Python asyncio-extending Python queue ...
https://man.mtool.work/php/8.3/gearmanclient.addtasklowbackground.html
GearmanClient::addTaskBackground — Add a background task to be run in parallel ... 8657
GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background task to be run in parallel 説明 public function GearmanClient::addTaskBackground ( string $function_name , string | int | float $wo ... to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. パラメータ function_name ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 c ... one to run in the background $task = $gmc -> addTaskBackground ( "reverse" , "!dlroW olleH" , null , "2" ); if (! $gmc -> runTasks ()) { echo "ERROR " . $gmc -> error () . "\n" ; exit; } echo "DONE\n" ; function reverse_status ( $task ) { echo "STATUS: ... n parallel GearmanClient::addTaskLowBackground() - Add a low priority background task to be run in parallel GearmanClient::runTasks() - Run a list of tasks in parallel 他のマニュアルの関連ページ DuckDB Securing Quack with a Reverse Proxy FastAPI Response ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
定義済み定数 | PHP 8.3 7865
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Return values. Always check GearmanClient::error() or GearmanWorker() for a s ... -blocking client task interface, can be returned from the task callback to "pause" the call and return from GearmanClient::runTasks() . Call GearmanClient::runTasks() again to continue. GEARMAN_UNKNOWN_STATE ( int ) Internal client/worker state error. GE ...
https://man.mtool.work/php/8.3/gearman.constants.html
The GearmanClient class | PHP 8.3 7706
The GearmanClient class (PECL gearman >= 0.5.0) はじめに Represents a class for connecting to a Gearman job server and making requests to perform some function on provided data. The function performed must be one registered by a Gearman wor ... g $workload ): bool public function removeOptions ( int $option ): bool public function returnCode (): int public function runTasks (): bool public function setCompleteCallback ( callable $callback ): bool public function setContext ( string $data ): boo ... nClient::removeOptions — Remove client options GearmanClient::returnCode — Get the last Gearman return code GearmanClient::runTasks — Run a list of tasks in parallel GearmanClient::setClientCallback — Callback function when there is a data packet for a t ...
https://man.mtool.work/php/8.3/class.gearmanclient.html
GearmanClient::addTaskStatus — Add a task to get status | PHP 8.3 7231
GearmanClient::addTaskStatus (PECL gearman >= 0.5.0) GearmanClient::addTaskStatus — Add a task to get status 説明 public function GearmanClient::addTaskStatus ( string $job_handle , mixed $context = null ): GearmanTask | false Used to reque ... ; $gmclient -> addTaskStatus ( $handles [ 0 ], $done ); $gmclient -> addTaskStatus ( $handles [ 1 ], $done ); $gmclient -> runTasks (); echo "Done: $done \n" ; sleep ( 1 ); } while ( $done != 2 ); function reverse_status ( $task , $done ) { if (! $task - ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskstatus.html
PREV 1 2 NEXT