<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Run a low priority task in the background</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gearmanclient.dolow.html">GearmanClient::doLow</a></div> <div class="next" style="text-align: right; float: right;"><a href="gearmanclient.donormal.html">GearmanClient::doNormal</a></div> <div class="up"><a href="class.gearmanclient.html">GearmanClient</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="gearmanclient.dolowbackground" class="refentry"> <div class="refnamediv"> <h1 class="refname">GearmanClient::doLowBackground</h1> <p class="verinfo">(PECL gearman >= 0.5.0)</p><p class="refpurpose"><span class="refname">GearmanClient::doLowBackground</span> — <span class="dc-title">Run a low priority task in the background</span></p> </div> <div class="refsect1 description" id="refsect1-gearmanclient.dolowbackground-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>GearmanClient::doLowBackground</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$function_name</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$workload</code></span> [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$unique</code></span> ] )</div> <p class="para rdfs-comment"> Runs a low priority task in the background, returning a job handle which can be used to get the status of the running task. Normal and high priority tasks take precedence over low priority tasks in the job queue. </p> </div> <div class="refsect1 parameters" id="refsect1-gearmanclient.dolowbackground-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">function_name</code></em></span> <dd> <p class="para"> A registered function the worker is to execute </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">workload</code></em></span> <dd> <p class="para"> Serialized data to be processed </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">unique</code></em></span> <dd> <p class="para"> A unique ID used to identify a particular task </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-gearmanclient.dolowbackground-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The job handle for the submitted task. </p> </div> <div class="refsect1 seealso" id="refsect1-gearmanclient.dolowbackground-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="methodname"><a href="gearmanclient.donormal.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doNormal()</a> - Run a single task and return a result</span></li> <li class="member"> <span class="methodname"><a href="gearmanclient.dohigh.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doHigh()</a> - Run a single high priority task</span></li> <li class="member"> <span class="methodname"><a href="gearmanclient.dolow.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doLow()</a> - Run a single low priority task</span></li> <li class="member"> <span class="methodname"><a href="gearmanclient.dobackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doBackground()</a> - Run a task in the background</span></li> <li class="member"> <span class="methodname"><a href="gearmanclient.dohighbackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doHighBackground()</a> - Run a high priority task in the background</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gearmanclient.dolow.html">GearmanClient::doLow</a></div> <div class="next" style="text-align: right; float: right;"><a href="gearmanclient.donormal.html">GearmanClient::doNormal</a></div> <div class="up"><a href="class.gearmanclient.html">GearmanClient</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>