2017 © Pedro Peláez
 

library sera

Asynchronous task execution library

image

99designs/sera

Asynchronous task execution library

  • Friday, July 31, 2015
  • by lox
  • Repository
  • 45 Watchers
  • 3 Stars
  • 9,588 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Sera - A queueing library

Allows for long-running or asynchronous tasks to be written as Tasks and queued on a variety on queuing mechanism., (*1)

Currently supports Beanstalk and Amazon SQS., (*2)

Build Status, (*3)

Installation

To add sera to a project, the easiest way is via composer:, (*4)

{
    "require": {
        "99designs/sera": ">=1.0.0"
    }
}

Usage

<?php

// a simple task
class MyTask extends Sera_Task_Abstract
{
    public static function create($params)
    {
        return new self($params);
    }

    public function execute()
    {
    my_long_running_function($this->_data);
    }
}

// a queue that connects to beanstalkd
$queue = new Sera_Queue_BeanstalkQueue("127.0.0.1");
$queue->select('llama_tasks');

// enqueue the task
$queue->enqueue(MyTask::create('some data'));

// normally this would be in a seperate process
$worker = new Sera_Queue_QueueWorker($queue);
$worker->execute();

Copyright (c) 2012 99designs See LICENSE for details., (*5)

The Versions

31/07 2015

dev-master

9999999-dev

Asynchronous task execution library

  Sources   Download

The Requires

 

The Development Requires

by Richard Bone

task queue beanstalk asynchronous

07/02 2014

v1.1.1

1.1.1.0

Asynchronous task execution library

  Sources   Download

The Requires

 

The Development Requires

by Richard Bone

task queue beanstalk asynchronous

06/02 2014

dev-bury-unloadable-jobs

dev-bury-unloadable-jobs

Asynchronous task execution library

  Sources   Download

The Requires

 

The Development Requires

by Richard Bone

task queue beanstalk asynchronous

13/01 2014

v1.1.0

1.1.0.0

Asynchronous task execution library

  Sources   Download

The Requires

 

The Development Requires

by Richard Bone

task queue beanstalk asynchronous

13/01 2014

dev-features/psrlog

dev-features/psrlog

Asynchronous task execution library

  Sources   Download

The Requires

 

The Development Requires

by Richard Bone

task queue beanstalk asynchronous

13/12 2012

v1.0.0

1.0.0.0

Asynchronous task execution library

  Sources   Download

The Requires

  • php >=5.3

 

The Development Requires

by Richard Bone

task queue beanstalk asynchronous