Download the PHP package splash/tasking-bundle without Composer
On this page you can find all versions of the php package splash/tasking-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tasking-bundle
Tasking-Bundle
Advanced Tasking Manager for Symfony. 100% Php with high concurrency management.
Key features
- Background tasking: create jobs to be run by workers (Symfony commands)
- 100% PHP, works on any Linux Server with PHP7.2+
- High concurrency management: use jobs token to ensure task is executed by a single process.
- Multi-server compatible: tokens are stored in a central SQL Table.
- Optimized memory footprint: create a dedicated Symfony environnement to reduce memory impacts.
Installation
Step 1 - Requirements and Installing the bundle
The first step is to tell composer that you want to download Tasking-Bundle which can be achieved by typing the following at the command prompt:
Step 2 - Enable the bundle in your kernel
The bundle must be added to your AppKernel
.
**Step usually not necessary in Symfony Flex.
Create Your First Job
Background jobs must extend Splash\Tasking\Model\AbstractJob.
Job Token may be defined multiple way:
Available Job Types
There are few predefined abstract job types, for different kinds of tasks:
- Splash\Tasking\Model\AbstractJob: a single simple task, executed once by job class.
- Splash\Tasking\Model\AbstractServiceJob: execute a Symfony service action with given parameters
- Splash\Tasking\Model\AbstractStaticJob: a simple task, executed & repeated every XX minutes.
- Splash\Tasking\Model\AbstractBatch: step-by-step, execute multiple tasks inside a single job.
Symfony Commands
The bundle comes with management commands to pilot workers from command line.
Note: Tasking processes & supervisor are activated & checked each time a new task is added to queue
Configuration reference
Bundle configuration are stored under splash_tasking:
Docker Dev Environnement
A Docker Compose file is available to run a development server. You can start it typing the following at the command prompt:
Testing & Code Quality
This bundle uses Phpunit for functional testing.
This bundle uses Grumphp for all code quality checks (PHPMD, PhpCsFixer, PhpStan, and more...).
License
This package is available under the MIT license.
All versions of tasking-bundle with dependencies
ext-posix Version *
ext-curl Version *
ext-pcntl Version *
symfony/symfony Version ~4.0
symfony/monolog-bundle Version >=2.1
doctrine/doctrine-bundle Version ^1.6|^2.0
sonata-project/admin-bundle Version >3.0
sonata-project/doctrine-orm-admin-bundle Version *