Results of 1 - 10 of about 34 for workload (0.001 sec.)
- Basic Gearman client and worker, background | PHP 8.3 11344
- Basic Gearman client and worker, background 例1 Basic Gearman client and worker, background This example shows a very simple client and worker. The client sends a string to the job server as a background job, and the worker reverses the str
... er -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { echo "Received job: " . $job -> handle () . "\n" ; $workload = $job -> workload (); $workload_size = $job -> workloadSize (); echo "Workload: $workload ( $workload_size )\n" ; # This ... status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload ... _size ); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ; # Return what we want to send back to the client. return $result ; } # A much simpler and l ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse-bg.html
- Basic Gearman client and worker, submitting tasks | PHP 8.3 11168
- Basic Gearman client and worker, submitting tasks 例1 Basic Gearman client and worker, submitting tasks In this example, the basic reverse client extended to run two tasks in parallel. The reverse worker is unchanged except to add sending o
... er -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { echo "Received job: " . $job -> handle () . "\n" ; $workload = $job -> workload (); $workload_size = $job -> workloadSize (); echo "Workload: $workload ( $workload_size )\n" ; # This ... status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $work ... load_size ); $job -> sendData ( substr ( $workload , $x , 1 )); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ; # Return what we want to send back ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse-task.html
- GearmanClient::addTaskBackground — Add a background task to be run in parallel ... 10816
- 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 $workload
... , then call GearmanClient::runTasks() to perform the work. パラメータ function_name ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 context タスクに関連づけるアプリケーションコンテキスト。 unique_key タスクを特定するために用いる一 ... er -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { echo "Received job: " . $job -> handle () . "\n" ; $workload = $job -> workload (); $workload_size = $job -> workloadSize (); echo "Workload: $workload ( $workload_size )\n" ; # This ... status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $work ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
- GearmanClient::do — Run a single task and return a result [deprecated] | PHP 8.... 10768
- 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
... as of pecl/gearman 1.0.0. Use GearmanClient::doNormal() . パラメータ function_name ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 unique タスクを特定するために用いる一意な ID。 戻り値 A string representing the results of runnin ... ho "return_code: " . $gmworker -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { return strrev ( $job -> workload ()); } ?> 上の例の出力は、 たとえば以下のようになります。 Starting Sending job Success: !olleH 例2 Submitting a job and re ... er -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { echo "Received job: " . $job -> handle () . "\n" ; $workload = $job -> workload (); $workload_size = $job -> workloadSize (); echo "Workload: $workload ( $workload_size )\n" ; # This ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- Basic usage | PHP 8.3 10720
- Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worker reverses the string and sends it back. The job is performed synchronously. <?php
... er -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { echo "Received job: " . $job -> handle () . "\n" ; $workload = $job -> workload (); $workload_size = $job -> workloadSize (); echo "Workload: $workload ( $workload_size )\n" ; # This ... status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload ... _size ); sleep ( 1 ); } $result = strrev ( $workload ); echo "Result: $result \n" ; # Return what we want to send back to the client. return $result ; } # A much simpler and l ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
- GearmanClient::doNormal — Run a single task and return a result | PHP 8.3 10720
- GearmanClient::doNormal (No version information available, might only be in Git) GearmanClient::doNormal — Run a single task and return a result 説明 public function GearmanClient::doNormal ( string $function , string $workload , ? string $
... nClient and GearmanWorker to agree on the format of the result. パラメータ function ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 unique タスクを特定するために用いる一意な ID。 戻り値 A string representing the results of runnin ... ho "return_code: " . $gmworker -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { return strrev ( $job -> workload ()); } ?> 上の例の出力は、 たとえば以下のようになります。 Starting Sending job Success: !olleH 例2 Submitting a job and re ... er -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ) { echo "Received job: " . $job -> handle () . "\n" ; $workload = $job -> workload (); $workload_size = $job -> workloadSize (); echo "Workload: $workload ( $workload_size )\n" ; # This ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
- GearmanJob::workload — Get workload | PHP 8.3 10401
- GearmanJob::workload (PECL gearman >= 0.5.0) GearmanJob::workload — Get workload 説明 public function GearmanJob::workload (): string Returns the workload for the job. This is serialized data that is to be processed by the worker. パラメータ
... りません。 戻り値 Serialized data. 参考 GearmanClient::do() - Run a single task and return a result [deprecated] GearmanJob::workloadSize() - Get size of work load 他のマニュアルの関連ページ DuckDB My Workload Is Slow DuckDB Tuning Workloads ...
-
https://man.mtool.work/php/8.3/gearmanjob.workload.html
- The GearmanClient class | PHP 8.3 10097
- 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
... null , bool $setupExceptionHandler = true ): bool public function addTask ( string $function_name , string | int | float $workload , mixed $context = null , ? string $unique_key = null ): GearmanTask | false public function addTaskBackground ( string $f ... unction_name , string | int | float $workload , mixed $context = null , ? string $unique_key = null ): GearmanTask | false public function addTaskHigh ( string $functio ... n_name , string | int | float $workload , mixed $context = null , ? string $unique_key = null ): GearmanTask | false public function addTaskHighBackground ( strin ...
-
https://man.mtool.work/php/8.3/class.gearmanclient.html
- GearmanJob::sendData — Send data for a running job | PHP 8.3 8228
- GearmanJob::sendData (PECL gearman >= 0.6.0) GearmanJob::sendData — Send data for a running job 説明 public function GearmanJob::sendData ( string $data ): bool Sends data to the job server (and any listening clients) for this job. パラメー
... タ data Arbitrary serialized data. 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 GearmanJob::workload() - Get workload GearmanTask::data() - Get data returned for a task 他のマニュアルの関連ページ DuckDB My Workload Is Slow ... DuckDB Tuning Workloads ...
-
https://man.mtool.work/php/8.3/gearmanjob.senddata.html
- GearmanJob::data — Send data for a running job (deprecated) | PHP 8.3 8052
- GearmanJob::data (PECL gearman <= 0.5.0) GearmanJob::data — Send data for a running job (deprecated) 説明 public function GearmanJob::data ( string $data ): bool Sends data to the job server (and any listening clients) for this job. 注意 :
... パラメータ data Arbitrary serialized data. 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 GearmanJob::workload() - Get workload GearmanTask::data() - Get data returned for a task 他のマニュアルの関連ページ Django 1.2.4 DuckDB My Work ... load Is Slow Django 1.2.2 Python pending-removal-in-3.15 Python superseded DuckDB Tuning Workloads ...
-
https://man.mtool.work/php/8.3/gearmanjob.data.html