Skip to content
HBM Async Worker - Use redis as async messenger and worker commands for async jobs.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AsyncWorker
Command
DependencyInjection
Output
Resources
Services
Traits
tests
.gitignore
HBMAsyncWorkerBundle.php
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

HBM Async Bundle

Team

Developers

Christian Puchinger - christian.puchinger@burda.com

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require burdanews/async-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:


// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new HBM\AsyncWorkerBundle\HBMAsyncWorkerBundle(),
        );

        // ...
    }

    // ...
}

Configuration

hbm_async_worker:
    runner:
        ids:
          - ernie
          - bert
          - tiffy
        runtime: 3600
        fuzz: 600
        timeout: 2.0
        block: 10
    queue:
        prefix: queue.
        priorities:
            - low
            - medium
            - high
    error:
        log: true
        file: /var/log/php-async-worker.log
    mail:
        defaultTo: 
        fromName: 'HBM Async Worker'
        fromMail: 'async@example.com'
    output:
        formats:
            debug:     { foreground: null,    background: null, options: [] }
            info:      { foreground: blue,    background: null, options: [] }
            notice:    { foreground: cyan,    background: null, options: [] }
            warning:   { foreground: magenta, background: null, options: [] }
            error:     { foreground: red,     background: null, options: [] }
            critical:  { foreground: red,     background: null, options: [] }
            alert:     { foreground: red,     background: null, options: [bold] }
            emergency: { foreground: red,     background: null, options: [bold] }
You can’t perform that action at this time.