Results of 1 - 10 of about 99 for task (0.003 sec.)
- Gearman | PHP 8.3 9711
- Gearman はじめに » Gearman は、複数のマシンやプロセスに 作業を任せるための汎用的なアプリケーションフレームワークです。これにより、 アプリケーションはタスクを並列で遂行したり、処理の負荷を分散したり、 言語をまたいで関数を呼び出したりできます
... ール手順 定義済み定数 例 Basic usage Basic Gearman client and worker, background Basic Gearman client and worker, submitting tasks GearmanClient — The GearmanClient class GearmanClient::addOptions — Add client options GearmanClient::addServer — Add a j ... ob server to the client GearmanClient::addServers — Add a list of job servers to the client GearmanClient::addTask — Add a task to be run in parallel GearmanClient::addTaskBackground — Add a background task to be run in parallel GearmanC ... lient::addTaskHigh — Add a high priority task to run in parallel GearmanClient::addTaskHighBackground — Add a high priority background ta ...
-
https://man.mtool.work/php/8.3/book.gearman.html
- GearmanClient::addTaskHigh — Add a high priority task to run in parallel | PHP ... 9346
- 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
... ntext = null , ? string $unique_key = null ): GearmanTask | false Adds a high priority task to be run in parallel 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. ... ontext タスクに関連づけるアプリケーションコンテキスト。 unique_key タスクを特定するために用いる一意な ID。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 A high priority task along with two normal tasks A high priority ta ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtaskhigh.html
- GearmanClient::addTaskLow — Add a low priority task to run in parallel | PHP 8.... 9346
- 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
... t = null , ? string $unique_key = null ): GearmanTask | false Adds a low priority background task 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. パ ... ontext タスクに関連づけるアプリケーションコンテキスト。 unique_key タスクを特定するために用いる一意な ID。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 A low priority task along with two normal tasks A low priority task ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtasklow.html
- The GearmanClient class | PHP 8.3 9307
- 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
... : bool public function addServers ( string $servers = null , bool $setupExceptionHandler = true ): bool public function addTask ( string $function_name , string | int | float $workload , mixed $context = null , ? string $unique_key = null ): GearmanT ... ask | false public function addTaskBackground ( string $function_name , string | int | float $workload , mixed $context = null , ? string $unique_key = null ) ... : GearmanTask | false public function addTaskHigh ( string $function_name , string | int | float $workload , mixed $context = null , ? s ...
-
https://man.mtool.work/php/8.3/class.gearmanclient.html
- GearmanClient::addTaskBackground — Add a background task to be run in parallel ... 9281
- 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
... rkload , mixed $context = null , ? string $unique_key = null ): GearmanTask | false Adds a background task to be run in parallel with other tasks. Call this method for all the tasks to be run in par ... allel, then call GearmanClient::runTasks() to perform the work. パラメータ function_name ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 ... ontext タスクに関連づけるアプリケーションコンテキスト。 unique_key タスクを特定するために用いる一意な ID。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 Two tasks, one background and one not This example illustrates the ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
- GearmanClient::addTask — Add a task to be run in parallel | PHP 8.3 9216
- 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
... $unique_key = null ): GearmanTask | false Adds a task 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. パラメータ fun ... ontext タスクに関連づけるアプリケーションコンテキスト。 unique_key タスクを特定するために用いる一意な ID。 戻り値 A GearmanTask object or false if the task could not be added. 例 例1 Basic submission of two tasks <?php # Create our gearman client $gm ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtask.html
- Pool::submitTo — Submits a task to a specific worker for execution | PHP 8.3 9216
- Pool::submitTo (PECL pthreads >= 2.0.0) Pool::submitTo — Submits a task to a specific worker for execution 説明 public function Pool::submitTo ( int $worker , Threaded $task ): int Submit a task to the specified worker in the pool. The work
... exist if the pool has needed to create them (since threads are lazily spawned). パラメータ worker The worker to stack the task onto, indexed from 0 . task The task for execution. 戻り値 The identifier of the worker that accepted the task. 例 例1 Sub ... mitting tasks to a specific worker <?php class Task extends Threaded { public function run () { var_dump ( Thread :: getCurrentThreadID ... ()); } } $pool = new Pool ( 2 ); $pool -> submit (new Task ()); for ( $i = 0 ; $i < 5 ; ++ $i ) { $pool -> submitTo ( 0 , new Task ()); // stack all tasks onto the first worker } $p ...
-
https://man.mtool.work/php/8.3/pool.submitTo.html
- parallel\run — Execution | PHP 8.3 9111
- parallel\run (1.0.0) parallel\run — Execution 説明 function parallel\run ( Closure $task ): ? Future Shall schedule task for execution in parallel. function parallel\run ( Closure $task , array $argv ): ? Future Shall schedule task for exec
... arallel\Runtime internally created and cached by a previous call to parallel\run() is idle, it will be used to execute the task. If no \parallel\Runtime is idle parallel will create and cache a \parallel\Runtime . 注意 : \parallel\Runtime objects cre ... ated by the programmer are not used for automatic scheduling. パラメータ task A Closure with specific characteristics. argv An array of arguments with specific characteristics to be passed to task at ... execution time. Task Characteristics Closures scheduled for parallel execution must not: accept or return by reference accept or return interna ...
-
https://man.mtool.work/php/8.3/parallel.run.html
- parallel\Runtime::run — Execution | PHP 8.3 9085
- parallel\Runtime::run (0.8.0) parallel\Runtime::run — Execution 説明 public function parallel\Runtime::run ( Closure $task ): ? Future Shall schedule task for execution in parallel. public function parallel\Runtime::run ( Closure $task , ar
... ray $argv ): ? Future Shall schedule task for execution in parallel, passing argv at execution time. パラメータ task A Closure with specific characteristics. argv A ... n array of arguments with specific characteristics to be passed to task at execution time. Task Characteristics Closures scheduled for parallel execution must not: accept or return by reference ... e, but must not contain class or named function declarations. 注意 : No instructions are prohibited in the files which the task may include. Arguments Characteristics Arguments must not: contain references contain resources contain internal objects ( ...
-
https://man.mtool.work/php/8.3/parallel-runtime.run.html
- GearmanClient::doHighBackground — Run a high priority task in the background | ... 8785
- GearmanClient::doHighBackground (PECL gearman >= 0.5.0) GearmanClient::doHighBackground — Run a high priority task in the background 説明 public function GearmanClient::doHighBackground ( string $function , string $workload , ? string $uniq
... ue = null ): string Runs a high priority task in the background, returning a job handle which can be used to get the status of the running task. High priority tasks tak ... e precedence over normal and low priority tasks in the job queue. パラメータ function ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 unique タス ... クを特定するために用いる一意な ID。 戻り値 The job handle for the submitted task. 参考 GearmanClient::doNormal() - Run a single task and return a result GearmanClient::doHigh() - Run a single high priori ...
-
https://man.mtool.work/php/8.3/gearmanclient.dohighbackground.html