Results of 1 - 10 of about 22 for gmclient (0.002 sec.)
- Add a task to get status 10673
- « GearmanClient::addTaskLowBackground GearmanClient::clearCallbacks » PHP Manual GearmanClient Add a task to get status 検索 GearmanClient::addTaskStatus (PECL gearman >= 0.5.0) GearmanClient::addTaskStatus — Add a task to get status 説明 p
... mple to simulate a long running process. There is only one worker running for this example. <?php /* create our object */ $gmclient = new GearmanClient (); /* add the default server */ $gmclient -> addServer (); /* start some background jobs and save the ... handles */ $handles = array(); $handles [ 0 ] = $gmclient -> doBackground ( "reverse" , "Hello World!" ); $handles [ 1 ] = $gmclient -> doBackground ( "reverse" , "!dlroW olleH" ); ... $gmclient -> setStatusCallback ( "reverse_status" ); /* Poll the server to see when those background jobs finish; */ /* a better met ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtaskstatus.html
- Run a single task and return a result [deprecated] 10572
- « 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
... k. 例 例1 Simple 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 = $gmc ... ll to GearmanClient::do() produces status information on the running job. <?php # Client code # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- Run a single task and return a result 10572
- « 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
... Simple job submission with immediate return <?php ?> <?php # Client code echo "Starting\n" ; # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; $result = $gmc ... GearmanClient::doNormal() produces status information on the running job. <?php # Client code # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
- Add a task to get status 10572
- « GearmanClient::addTaskLowBackground GearmanClient::clearCallbacks » PHP Manual GearmanClient Add a task to get status 検索 GearmanClient::addTaskStatus (PECL gearman >= 0.5.0) GearmanClient::addTaskStatus — Add a task to get status 説明 p
... mple to simulate a long running process. There is only one worker running for this example. <?php /* create our object */ $gmclient = new GearmanClient (); /* add the default server */ $gmclient -> addServer (); /* start some background jobs and save the ... handles */ $handles = array(); $handles [ 0 ] = $gmclient -> doBackground ( "reverse" , "Hello World!" ); $handles [ 1 ] = $gmclient -> doBackground ( "reverse" , "!dlroW olleH" ); ... $gmclient -> setStatusCallback ( "reverse_status" ); /* Poll the server to see when those background jobs finish; */ /* a better met ...
-
https://man.mtool.work/php/8.3/gearmanclient.addtaskstatus.html
- Run a single task and return a result [deprecated] 10572
- « 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
... k. 例 例1 Simple 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 = $gmc ... ll to GearmanClient::do() produces status information on the running job. <?php # Client code # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- Run a single task and return a result 10572
- « 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
... Simple job submission with immediate return <?php ?> <?php # Client code echo "Starting\n" ; # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; $result = $gmc ... GearmanClient::doNormal() produces status information on the running job. <?php # Client code # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
- Get the status for the running task 9915
- « GearmanClient::doNormal GearmanClient::echo » PHP Manual GearmanClient Get the status for the running task 検索 GearmanClient::doStatus (PECL gearman >= 0.5.0) GearmanClient::doStatus — Get the status for the running task 説明 public func
... delay it calls GearmanJob::status() which the client then picks up. <?php echo "Starting\n" ; # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ... ase GEARMAN_WORK_DATA : break; case GEARMAN_WORK_STATUS : # get the current job status list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; ex ...
-
https://man.mtool.work/php/8.3/gearmanclient.dostatus.html
- Get the status for the running task 9915
- « GearmanClient::doNormal GearmanClient::echo » PHP Manual GearmanClient Get the status for the running task 検索 GearmanClient::doStatus (PECL gearman >= 0.5.0) GearmanClient::doStatus — Get the status for the running task 説明 public func
... delay it calls GearmanJob::status() which the client then picks up. <?php echo "Starting\n" ; # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ... ase GEARMAN_WORK_DATA : break; case GEARMAN_WORK_STATUS : # get the current job status list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; ex ...
-
https://man.mtool.work/php/8.3/gearmanclient.dostatus.html
- Basic usage 8602
- « 例 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
... r reverses the string and sends it back. The job is performed synchronously. <?php # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ... case GEARMAN_WORK_DATA : echo "Data: $result \n" ; break; case GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; ex ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
- Basic usage 8602
- « 例 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
... r reverses the string and sends it back. The job is performed synchronously. <?php # Create our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse ... job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { ... case GEARMAN_WORK_DATA : echo "Data: $result \n" ; break; case GEARMAN_WORK_STATUS : list( $numerator , $denominator )= $gmclient -> doStatus (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; ex ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse.html