Results of 1 - 10 of about 67 for Workload (0.005 sec.)
- Basic Gearman client and worker, background 10072
- « Basic usage Basic Gearman client and worker, submitting tasks » PHP Manual 例 Basic Gearman client and worker, background 検索 Basic Gearman client and worker, background 例1 Basic Gearman client and worker, background This example shows
... 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 9844
- « Basic Gearman client and worker, background GearmanClient » PHP Manual 例 Basic Gearman client and worker, submitting tasks 検索 Basic Gearman client and worker, submitting tasks 例1 Basic Gearman client and worker, submitting tasks In th
... 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
- Basic Gearman client and worker, background 9759
- « Basic usage Basic Gearman client and worker, submitting tasks » PHP Manual 例 Basic Gearman client and worker, background 検索 Basic Gearman client and worker, background 例1 Basic Gearman client and worker, background This example shows
... 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 9574
- « Basic Gearman client and worker, background GearmanClient » PHP Manual 例 Basic Gearman client and worker, submitting tasks 検索 Basic Gearman client and worker, submitting tasks 例1 Basic Gearman client and worker, submitting tasks In th
... 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
- Basic usage 9531
- « 例 Basic Gearman client and worker, background » PHP Manual 例 Basic usage 検索 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 worke
... 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
- Run a single task and return a result [deprecated] 9488
- « GearmanClient::data GearmanClient::doBackground » PHP Manual GearmanClient Run a single task and return a result [deprecated] 検索 GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprec
... ated] 説明 public function GearmanClient::do ( string $function_name , string $workload , string $unique = ? ): string The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::d ... oNormal() . パラメータ 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 ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- Run a single task and return a result 9488
- « GearmanClient::doLowBackground GearmanClient::doStatus » PHP Manual GearmanClient Run a single task and return a result 検索 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 $unique = null ): string Runs a single task and returns a string representation of the result. It is up to the ... 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 ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
- Basic usage 9488
- « 例 Basic Gearman client and worker, background » PHP Manual 例 Basic usage 検索 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 worke
... 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
- Run a single task and return a result [deprecated] 9488
- « GearmanClient::data GearmanClient::doBackground » PHP Manual GearmanClient Run a single task and return a result [deprecated] 検索 GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprec
... ated] 説明 public function GearmanClient::do ( string $function_name , string $workload , string $unique = ? ): string The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::d ... oNormal() . パラメータ 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 ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- Run a single task and return a result 9488
- « GearmanClient::doLowBackground GearmanClient::doStatus » PHP Manual GearmanClient Run a single task and return a result 検索 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 $unique = null ): string Runs a single task and returns a string representation of the result. It is up to the ... 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 ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html