|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-01-31 22:09 UTC] andrew dot ellis at liquidcompass dot net
Description: ------------ Hello, Gearmand now allows you to set a when_to_run value if you're using MySQL persistent storage. It would be nice if this functionality was exposed when using addTask() so you can schedule a task to be ran in the future (which I assume would get added to Gearmand's queue stack via the runTasks() command. Also, it would be nice if we could define that we're using MySQL persistent storage so when you run addTask() it automatically adds it to the gearman_queue table. Best regards, Andrew Patchesphp-gearman-1.1.2.patch (last revision 2014-08-07 03:48 UTC by chjgcn at gmail dot com)gearman-1.1.2.patch (last revision 2014-08-04 14:50 UTC by chjgcn at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
Before use this patch file here, you should use that patch file in https://bugs.launchpad.net/gearmand/+bug/1352411 to patch gearmand first to compile and install gearmand. After patching gearmand and php-gearman, you can use these functions $client->addTaskEpoch($function, $workload, $when); $client->addTaskHighEpoch($function, $workload, $when); $client->addTaskLowEpoch($function, $workload, $when); in PHP codes. You can also read https://bugs.php.net/bug.php?id=67623 for SSL support, and this patch file here contain that patch file in that link.The new patch file add client methods "doEpoch", "doHighEpoch" and "doLowEpoch". Before using this new patch file, you should use the latest patch file in https://bugs.launchpad.net/gearmand/+bug/1352411 to patch gearmand and compile and install, otherwise this new patch will not compile.