Download the PHP package sfcod/jobqueue without Composer
On this page you can find all versions of the php package sfcod/jobqueue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package jobqueue
Job Queue Bundle for Symfony
Provides async queues implementation for Symfony (using mongodb as main storage).
Supported drivers (storages):
- MongoDB
- Redis
- Custom
Config:
Register the bundle config and all available "Jobs"
Adding jobs to the queue:
Create your own "job" which implements SfCod\QueueBundle\Base\JobInterface and run it:
where $data is a payload for your job
Commands:
Run worker daemon with console command:
Where:
- work - command to run daemon in loop;
- retry - command to move all failed jobs back into queue, can be used with --id param to retry only single job
- run-job - command to run single job by id
Available events:
Configurable services list (with default parameters):
JobQueue:
SfCod\QueueBundle\Service\JobQueue: main job queue service
Worker
SfCod\QueueBundle\Worker\Worker: async worker for "work" command
JobProcess
JobProcess: default config for jobs command processor in async queues, where:
- 'console' - name of console command
- '%kernel.project_dir%/bin' - path for console command
- 'php' - binary script
- '' - binary script arguments
Connector
SfCod\QueueBundle\Connector\ConnectorInterface: connector for queues' database
Failer
SfCod\QueueBundle\Failer\FailedJobProviderInterface: storage for failed jobs
Job resolver
SfCod\QueueBundle\Base\JobResolverInterface: resolver for jobs, it builds job using job's display name, for default jobs fetches from container as a public services.
Exception handler
SfCod\QueueBundle\Handler\ExceptionHandlerInterface: main exception handler, used for logging issues
Testing:
You can run tests using prepared configuration xml file:
All versions of jobqueue with dependencies
symfony/framework-bundle Version ^5.4
symfony/monolog-bundle Version ^3.1
symfony/process Version ^5.4
symfony/dotenv Version ^5.4