Download the PHP package mcfedr/resque-queue-driver-bundle without Composer
On this page you can find all versions of the php package mcfedr/resque-queue-driver-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package resque-queue-driver-bundle
Resque Queue Driver Bundle
A driver for Queue Manager Bundle that uses resque
Usage
PHP Resque installs two commands into your bin folder.
Generally you should run just one instance of resque-scheduler and several of resque.
- Add
VVERBOSE=1to the environment to get more logging.
It can be useful to decouple the queueing (master) and execution (slave) of jobs in a
micro service architecture. For this it can be necessary to set specific kernel_options
for a worker if they differ from the master.
- Add
KERNEL_CLASSwith the fully qualified class name of the kernel to override thekernel.root_diroption. If your kernel is not located in the root namespace (like in symfony flex applications), this is the only way to specify the class name of the kernel class. - Add
SYMFONY_ENVorAPP_ENVto override thekernel.environmentoption. - Add
SYMFONY_DEBUGorAPP_DEBUGto override thekernel.debugoption.
Install
Composer
composer require mcfedr/resque-queue-driver-bundle
AppKernel
Include the bundle in your AppKernel
public function registerBundles()
{
$bundles = [
...
new Mcfedr\QueueManagerBundle\McfedrQueueManagerBundle(),
new Mcfedr\ResqueQueueDriverBundle\McfedrResqueQueueDriverBundle(),
Config
With this bundle installed you can setup your queue manager config similar to this:
mcfedr_queue_manager:
managers:
default:
driver: resque
options:
host: 127.0.0.1
port: 11300
default_queue: default
track_status: false
This will create a QueueManager service named "mcfedr_queue_manager.default"
hostandport- Where is your Redis serverdefault_queue- Name of the default queue to usetrack_status- Set totrueto enable extra job tracking data to be stored in redis. Useful for debugging
Options to QueueManager::put
queue- Astringwith the name of a queuetime- A\DateTimeobject of when to schedule this jobdelay- Number of seconds from now to schedule this jobtrack_status- Set totrueto enable extra job tracking data to be stored in redis. Useful for debugging
All versions of resque-queue-driver-bundle with dependencies
mcfedr/queue-manager-bundle Version ^5.4.5
mcfedr/php-resque Version ~1.3
mcfedr/php-resque-scheduler Version ~1.4
symfony/framework-bundle Version ^3.0|^4.0

