cimus/gearman-bundle

Symfony CimusGearmanBundle

安装: 54

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 3

分支: 1

类型:symfony-bundle

1.0.0 2016-06-08 15:04 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:09:30 UTC


README

用于简单任务队列组织的包

**注意。** 注意!此包可以工作,但包含一些低质量代码,这些代码将在未来进行重构。不保证方法的支持。请不要在战斗项目中使用!

功能

  • 启动单个工作者
  • 启动所有工作者
  • 监控工作者

安装

需要 Gearman 和 PHP 扩展 PECL gearman 来运行

通过 Composer 安装

{
    "require": {
        "cimus/gearman-bundle": "dev-master"
    }
}

配置

默认配置。您可以在 app/config.yml 中更改它

cimus_gearman:
    servers: 
        localhost:
            host: 127.0.0.1
            port: 4730

在核心中注册包

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Cimus\GearmanBundle\CimusGearmanBundle(),
        // ...
    );
}

使用