2017 © Pedro Peláez
 

symfony-bundle task-bundle

Symfony task bundle

image

insidieux/task-bundle

Symfony task bundle

  • Tuesday, December 19, 2017
  • by insidieux
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,889 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 9 % Grown

The README.md

TaskBundle

Overview

The TaskBundle provides infrastructure for simple implementation of delayed tasks, (*1)

Requirements

  • PHP 7.0 or greater
  • doctrine/orm: ^2.5
  • stof/doctrine-extensions-bundle: ^1.2
  • symfony/config: ^3.3
  • symfony/console: 3.3
  • symfony/dependency-injection: ^3.3
  • symfony/http-kernel: ^3.3
  • symfony/framework-bundle: ^3.3

Installation

You can install the package using the Composer package manager. You can install it by running this command in your project root:, (*2)

composer require insidieux/task-bundle

Don't forget to make diff and run migrations, for creating tasks queue table, (*3)

Usage

First of all, you need to add some new namespaces to separate task processing:, (*4)

task:
  debug: true
  namespaces:
    - 'namespace1'
    - 'namespace2'

After building container, you'll see predefined worker services:, (*5)

task.worker.namespace1
task.worker.namespace2

You can run them via cron/supervisor. Also you can scale them by passing worker-id to command, (*6)

$ bin/console task:worker:namespace --id 1
$ bin/console task:worker:namespace --id 2

Create php class extending \TaskBundle\Handler\AbstractHandler and implement perform method Push created handler to queue, (*7)

$this->getContainer()->get('task.services.pusher')->push(new SomeHandler, 'namespace1');

Roadmap

Changelog

This bundle changelog here, (*8)

License

This bundle is released under the MIT license, (*9)

Authors

The Versions

19/12 2017

dev-master

9999999-dev

Symfony task bundle

  Sources   Download

MIT

The Requires

 

by Ageev Pavel
by Barakin Alexandr

bundle symfony tasks insidieux

19/12 2017
19/12 2017

dev-dev-unlock-error-message

dev-dev-unlock-error-message

Symfony task bundle

  Sources   Download

MIT

The Requires

 

by Ageev Pavel
by Barakin Alexandr

bundle symfony tasks insidieux

20/10 2017
28/06 2017
28/06 2017
26/12 2016
21/12 2016
10/11 2016