2017 © Pedro Peláez
 

craft-plugin queue

Simple queue

image

flipboxdigital/queue

Simple queue

  • Thursday, August 3, 2017
  • by nateiler
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2,412 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Queue system for Craft CMS

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

This package provides a robust queue system for Craft CMS., (*2)

Installation

To install, use composer:, (*3)

composer require flipboxdigital/queue

In the Craft Control Panel, go to Settings → Plugins and click the "Install" button for Queue., (*4)

Usage

By default, multiple queues are supported. In order to add a new queue, register it via an event in your Plugin::init():, (*5)

yii\base\Event::on(
    flipbox\queue\queues\MultipleByEvent::class,
    flipbox\queue\queues\MultipleByEvent::EVENT_REGISTER_QUEUES,
    function(flipbox\queue\events\RegisterQueues $event) {
        $event->queues[] = [
            'class' => flipbox\queue\queues\Sqs::class,
            'url' => 'https://sqs.us-west-2.amazonaws.com/1234567890/xxxxxx',
            'config' => [
                'region' => 'us-west-2',
                'version' => 'latest'
            ]
        ];
    }
);

To post a new job (extend flipbox\queue\jobs\AbstractJob), (*6)


$job = new Your\Test\Job(); Queue::getInstance()->getQueue()->post($job);

To run a job:, (*7)

$job = Queue::getInstance()->getQueue()->fetch();

if ($job) {
    Queue::getInstance()->getQueue()->run($job);
}

Testing

bash $ ./vendor/bin/phpunit, (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

03/08 2017

dev-develop

dev-develop

Simple queue

  Sources   Download

The Requires

 

The Development Requires

yii2 queue craftcms flipbox

03/08 2017

dev-master

9999999-dev

Simple queue

  Sources   Download

The Requires

 

The Development Requires

yii2 queue craftcms flipbox

03/08 2017

1.0.0-beta.3

1.0.0.0-beta3

Simple queue

  Sources   Download

The Requires

 

The Development Requires

yii2 queue craftcms flipbox

28/06 2017

1.0.0-beta.2

1.0.0.0-beta2

Simple queue

  Sources   Download

The Requires

 

The Development Requires

yii2 queue craftcms flipbox

16/06 2017

1.0.0-beta.1

1.0.0.0-beta1

Simple queue

  Sources   Download

The Requires

 

The Development Requires

yii2 queue craftcms flipbox

07/06 2017

1.0.0-beta

1.0.0.0-beta

Simple queue

  Sources   Download

The Requires

 

The Development Requires

yii2 queue craftcms flipbox