|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-04 15:43 UTC] gearman at mailinator dot com
[2017-01-10 08:22 UTC] kalle@php.net
-Status: Open
+Status: Suspended
[2017-01-10 08:22 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Description: ------------ Posting this so it ends up in the archive where others might find it .... if your setCompleteCallback is not working this may be why. I spent several hours friday trying to debug code that used to work and stopped when we updated the libgearman php library. What I eventually found is that with extension 0.8.1 and libgearman 33 the setCompleteCallback() MUST happen *before * calling addTask(). This doesn't appear to have been the case with earlier libgearman versions What we had was $gmclient->addTask('foo','bar'); $gmclient->setCompleteCallback('foodone'); $gmclient->runTasks(); That does not work - however this does. $gmclient->setCompleteCallback('foodone'); $gmclient->addTask('foo','bar'); $gmclient->runTasks(); Not helped by having an old version of libgearman on my dev box where it did work.