array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'gearmanclient.setfailcallback.php', 1 => 'GearmanClient::setFailCallback', ), 'up' => array ( 0 => 'class.gearmanclient.php', 1 => 'GearmanClient', ), 'prev' => array ( 0 => 'gearmanclient.setexceptioncallback.php', 1 => 'GearmanClient::setExceptionCallback', ), 'next' => array ( 0 => 'gearmanclient.setoptions.php', 1 => 'GearmanClient::setOptions', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gearman/gearmanclient/setfailcallback.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL gearman >= 0.5.0)
GearmanClient::setFailCallback — Set callback for job failure
Sets the callback function to be used when a task does not complete successfully. The function should accept a single argument, a GearmanTask object.
function
A function to call