It's a wrapper on https://packagist.org/packages/mmoreram/gearman-bundle
We simply needed to process some signals provided by pcntl_signal. Original one disallowed to do so if worker was waiting for a job.
composer require dreamcommerce/gearman-bundle
- Edit
AppKernel.php
, append these bundles:
new Mmoreram\GearmanBundle\GearmanBundle(),
new DreamCommerce\GearmanBundle\DreamCommerceGearmanBundle(),
- That's all.
- register command as service
- fixed configuration generating when job_prefix is used
- added
name_prefix
to specify task name prefix (useful when single Supervisor is shared between prod/dev) - fixed generating when no programs is defined
- fixed an issue with generating file with not configured workers
- fixed incorrect generated command
- finished messing up with repositories locations, until pull request of
mmoreram/gearman-bundle
is being accepted, you have to declare a overriding repository in your maincomposer.json
"repositories": [
{
"type": "package",
"package": {
"name": "mmoreram/gearman-bundle",
"version": "4.0",
"source": {
"url": "https://github.com/er1z/GearmanBundle",
"type": "git",
"reference": "master"
}
}
}
],
- fixed autoloader definition
- fixed version constraint stability
- fix for PHP 7 in related commit of
mmoreram/gearman-bundle
; removed obsolete logic - added a possibility to generate workers configuration for supervisord
- cleaned-up version constraint
- bound
mmoreram/gearman-bundle
to exact version constraint due to the segfault in PHP 7
- added support for memory-leak protection
- fixed autoloader
- first working version