PHPackages                             sunvalley-technologies/php-task-manager-symfony-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sunvalley-technologies/php-task-manager-symfony-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sunvalley-technologies/php-task-manager-symfony-bundle
======================================================

Symfony bundle for PHP Task Manager

1.1.1(5y ago)07.8k1[1 issues](https://github.com/sunvalley-technologies/php-task-manager-symfony-bundle/issues)[1 PRs](https://github.com/sunvalley-technologies/php-task-manager-symfony-bundle/pulls)MITPHPCI failing

Since Nov 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sunvalley-technologies/php-task-manager-symfony-bundle)[ Packagist](https://packagist.org/packages/sunvalley-technologies/php-task-manager-symfony-bundle)[ RSS](/packages/sunvalley-technologies-php-task-manager-symfony-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (8)Versions (15)Used By (0)

PHP Task Manager - Symfony Bundle
=================================

[](#php-task-manager---symfony-bundle)

[![Build Status](https://camo.githubusercontent.com/2771d9aa6f0126142f899e35c836e85ea6c5c94d331b4395a71adf2df5c4e466/68747470733a2f2f7472617669732d63692e6f72672f73756e76616c6c65792d746563686e6f6c6f676965732f7068702d7461736b2d6d616e616765722d73796d666f6e792d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunvalley-technologies/php-task-manager-symfony-bundle)

[See main repository for base usage](https://github.com/sunvalley-technologies/php-task-manager)

This bundle integrates the task manager to Symfony. Supports Symfony ^3.0 and ^4.0.

Installing
----------

[](#installing)

`composer require sunvalley-technologies/php-task-manager-symfony-bundle`

Make sure to add the bundle to your Kernel's bundles.

Configuration
-------------

[](#configuration)

Complete configuration looks like following:

```
php_task_manager:
    task_queue: redis://127.0.0.1:6379
    task_storage: redis://127.0.0.1:6379
    pool:
        minimum_processes: 1
        maximum_processes: 10
        time_to_live: 60
        max_jobs_per_process: 10
```

From which `task_queue` is the only required configuration parameter.

`task_storage` is optional and if given is used to store task information.

If you have a non-standard Kernel have a look and replace the `SunValley\TaskManager\Symfony\Task\TaskEnvironment` class and `AbstractSymfonyTask` to provide a proper Kernel for your tasks.

Generating and Submitting Tasks
-------------------------------

[](#generating-and-submitting-tasks)

It is necessary to generate tasks to control exactly what each task is doing. This can be thought like generating controllers.

All kernel dependent classes should extend `AbstractSymfonyTask` and they are synchronous tasks by default.

Here is a sample task that persist a doctrine entity:

```
