imsamurai/cakephp-task-plugin 问题修复 & 功能扩展

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

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

imsamurai/cakephp-task-plugin

Composer 安装命令:

composer require imsamurai/cakephp-task-plugin

包简介

Plugin for run deffered (scheduled) tasks (console scripts)

README 文档

README

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

Plugin for run deffered (scheduled) tasks (console scripts)

!Scheduled run is not available yet!

Installation

Composer (for ex. version 1.0.0):

{
	"require": {
		"imsamurai/cakephp-task-plugin": "1.0.0"
	}
}

it installs in Plugin directory (in same level with composer.json) so you may want to add Plugin/Task into ignore file.

or clone:

cd my_cake_app/app
git clone git://github.com/imsamurai/cakephp-task-plugin.git Plugin/Task

or if you use git add as submodule:

cd my_cake_app
git submodule add "git://github.com/imsamurai/cakephp-task-plugin.git" "app/Plugin/Task"

then add plugin loading in Config/bootstrap.php

CakePlugin::load('Task', array('bootstrap' => true));

add tables from Config/Schema/tasks.sql

include https://github.com/symfony/Process and https://github.com/kriswallsmith/spork in your project, for ex with composer (tested with 2.3 version)

Configuration

Write global config if you need to use custom settings function:

Configure::write('Task', array(
  //maximum runned tasks at the same time
  'maxSlots' => <number of slots>
));

Usage

Use TaskClient::add() for adding new tasks Put Console/cake Task.task server in the cron, for ex each 1-5 minutes (depends on your needs) Try http://yourdomain/task/ for basic view

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-01-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固