Is there any module that let you put "actions" in a queue and then process the queue during hook_cron in D5?
Ideally something will put an action in the queue (say a function call + serialized parameters in a text field), the module hook_cron should pick it up, run it, delete it from the queue accordingly to the result of the action and log any failure.
I don't know if it exists, but I programmed a module which had 1 function to push function and parameters saving then in a table; and a hook_cron which start a counter, and executed functions for 5 seconds. Simple but useful.
I could send you my code to use as a start point.
On Tue, Apr 28, 2009 at 12:04 PM, Ivan Sergio Borgonovo mail@webthatworks.it wrote:
Is there any module that let you put "actions" in a queue and then process the queue during hook_cron in D5?
Ideally something will put an action in the queue (say a function call + serialized parameters in a text field), the module hook_cron should pick it up, run it, delete it from the queue accordingly to the result of the action and log any failure.
-- Ivan Sergio Borgonovo http://www.webthatworks.it
-- [ Drupal support list | http://lists.drupal.org/ ]
On Tue, 28 Apr 2009 12:23:32 +0200 Lluís enboig@gmail.com wrote:
I don't know if it exists, but I programmed a module which had 1 function to push function and parameters saving then in a table; and a hook_cron which start a counter, and executed functions for 5 seconds. Simple but useful.
I could send you my code to use as a start point.
Please publish it somewhere (or email it).
I'd like to keep the effort of building a queue system as low as possible since actually I'm not really sure a queue system fit the problem. So starting from something is going to be better than starting from nothing at least as getting a better idea on the problem.
thanks