jbroudou/cronlock 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jbroudou/cronlock

Composer 安装命令:

composer require jbroudou/cronlock

包简介

README 文档

README

A simple ZF2 module that provides locking functionality for cron type console actions.

To install add the following to your project's composer.json

"jbroudou/cronlock": "dev-master"

To enable locking functionality of a console action set the cronLock parameter of the route's default options. e.g.

'my-end-point' => array(
                    'options' => array(
                        'route'    => 'my-end-point',
                        'defaults' => array(
                            'controller' => 'Project\Controller\Cron',
                            'action'     => 'runCron',
                            'cronLock' => true,
                        )
                    )
                )

Set the directory where lock files will be created by specifying a cronLockDir config in your project's auto load config. If not set, the module will default to the /tmp directory.

统计信息

  • 总下载量: 5.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-10-29