2017 © Pedro Peláez
 

magento-module aoe_queue

Generic queue based on Zend_Queue

image

aoepeople/aoe_queue

Generic queue based on Zend_Queue

  • Friday, April 28, 2017
  • by fbrnc
  • Repository
  • 59 Watchers
  • 37 Stars
  • 2,789 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 2 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

Aoe_Queue

How to run unit tests

cd <MagentoDocRoot>

# Get phpunit
wget http://pear.phpunit.de/get/phpunit.phar
chmod +x phpunit.phar

# Run tests
./phpunit.phar tests/Aoe_Queue/QueueTestcase.php

Adding a task to the queue

$queue = Mage::getModel('aoe_queue/queue'); /* @var $queue Aoe_Queue_Model_Queue */
$queue->addTask('aoe_queue/dummy::test', array('-+', '5'));

Processing the queue

$queue = Mage::getModel('aoe_queue/queue'); /* @var $queue Aoe_Queue_Model_Queue */
$messages = $queue->receive(5); /* @var $messages Zend_Queue_Message_Iterator */
foreach ($messages as $message) { /* @var $message Aoe_Queue_Model_Message */
    $message->execute();
}

Cron configuration

In System > Configuration > Advanced > System > Queue

Use Aoe_Scheduler to run a separate cronjob to process the aoe_queue task so this won't block the other tasks.

The Versions

28/04 2017

dev-exception_retry

dev-exception_retry

Generic queue based on Zend_Queue

  Sources   Download

GPL-3.0

The Requires

 

magento

29/09 2015

dev-master

9999999-dev

Generic queue based on Zend_Queue

  Sources   Download

GPL-3.0

The Requires

 

magento