Download the PHP package abc/job-worker-bundle without Composer
On this page you can find all versions of the php package abc/job-worker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abc/job-worker-bundle
More information about abc/job-worker-bundle
Files in abc/job-worker-bundle
Package job-worker-bundle
Short Description A Symfony to process jobs from AbcJobServerBundle
License MIT
Homepage http://aboutcoders.com
Informations about the package job-worker-bundle
AbcJobWorkerBundle
A symfony bundle to process jobs managed by AbcJobServerBundle using php-enqueue as transport layer.
Note: This project is still in experimental!
Demo
You can find a demo here.
Installation
Configuration Reference
Getting Started
Prerequisites
- A Symfony application with AbcJobServerBundle installed
- Enqueue transport is configured matching the configuration of AbcJobServerBundle
Create a job processor
A job processor must implement the interface ProcessorInterface
.
Register a job processor
A job processor must be registered using the tag abc.job.processor
. You must define the tag attribute jobName
with it which defines the name of the job that must be processed with this processor.
Configure job routes
A route must be configured for every job. A route consist of three parameters: name
specifies the the name of the job, queue
specifies the name of the queue the job is sent to, replyTo
specifies the name of the queue where the reply of a job is sent to.
Routes are configured by a class that implements the interface RouteProviderInterface
.
A route provider must be registered using the tag abc.job.route_provider
.
Commands
Command abc:job:process
The command abc:job:process
processes one or more specific jobs, that have to be specified by name. You can provide a single job name or an array of job names as argument.
Command abc:queue:process
The command abc:queue:process
processes jobs one or more queues. It will process all jobs that have been registered.
You can provide a single queue name or an array of queues as argument.
Command abc:routes:register
The command abc:routes:register
registers routes defined by a route provider on the server. Existing routes are overwritten but not deleted.
Command abc:broker:setup
The command abc:broker:setup
declares queues at the broker for all registered routes.
License
The MIT License (MIT). Please see License File for more information.
All versions of job-worker-bundle with dependencies
symfony/framework-bundle Version ^4.3|^5.1
abc/job Version ^0.4|dev-master