rossmann-it/yii2-cron 问题修复 & 功能扩展

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

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

rossmann-it/yii2-cron

Composer 安装命令:

composer require rossmann-it/yii2-cron

包简介

Flexible cron tasks manager for the Yii2 Framework

README 文档

README

This is a flexible tasks manager designed for MVC-type applications. It's used instead of standard linux crontab command.

The purpose of this tool is to provide an easy way to manipulate repetitive tasks.

Live Demo of original project by multimate Code Climate Test Coverage License

How this works

Replace all tasks in crontab file with one which will invoke method TaskRunner::checkAndRunTasks().

Import tasks from current crontab file or add them manually. Active tasks will run one by one if current time matches with the task's time expression. Output of tasks can be handled. For each execution will be assigned status:

  • Success if method returned true;
  • Error if method returned false or an exception was caught;
  • Started if task is running or wasn't ended properly.

Features

  • Works with any storage engines
  • Flexible implementation with interfaces
  • Disable, enable and run tasks through tool interface
  • Handle tasks output however you want
  • Time expression helper shows next run dates
  • Monitor runs results
  • Export and import tasks from crontab
  • Add needed method for new task from dropdown

Installation

Install package via Composer

composer require rossmann-it/yii2-cron

Requirements

Configure

  • Create tables if you want to store data in database (use Yii migration)
  • Implement TaskInterface and TaskRunInterface or use predefined classes from the Example folder
  • Copy and modify controller and views. Or create your own.
  • Import tasks through interface or add them manually
  • Add new line into crontab file that will invoke TaskRunner::checkAndRunTasks()
  • Disable tasks that will be invoked through the manager
  • Make sure that manager is not publicly available

Screenshots

Tasks list Report Logs Import and export

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 68
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固