php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64120 Add when_to_run functionality.
Submitted: 2013-01-31 22:09 UTC Modified: 2017-01-10 08:23 UTC
Votes:8
Avg. Score:4.2 ± 1.1
Reproduced:8 of 8 (100.0%)
Same Version:3 (37.5%)
Same OS:3 (37.5%)
From: andrew dot ellis at liquidcompass dot net Assigned:
Status: Suspended Package: gearman (PECL)
PHP Version: 5.4.11 OS: CentOS 6.2 64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andrew dot ellis at liquidcompass dot net
New email:
PHP Version: OS:

 

 [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


Patches

php-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 Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-04 15:36 UTC] chjgcn at gmail dot com
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.
 [2014-08-07 03:54 UTC] chjgcn at gmail dot com
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.
 [2017-01-10 08:23 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:23 UTC] kalle@php.net
The gearman extension have not had much activity in the past few years, so I'm taking the safe bet that this is no longer under active development (as I don't consider the typo fixes on the github repo an active development), besides that it also targets unsupported PHP versions. Please unsuspend this report in case it begins to blossom with life once more
 [2017-08-14 16:02 UTC] polone at townnews dot com
The gearmand project looks to still be alive beyond "text" changes:

https://github.com/gearman/gearmand/releases

This feature would still be useful for delaying processing of background tasks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 07:01:29 2024 UTC