Download the PHP package xieyongfa/think-crontab without Composer
On this page you can find all versions of the php package xieyongfa/think-crontab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xieyongfa/think-crontab
More information about xieyongfa/think-crontab
Files in xieyongfa/think-crontab
Download xieyongfa/think-crontab
More information about xieyongfa/think-crontab
Files in xieyongfa/think-crontab
Vendor xieyongfa
Package think-crontab
Short Description The ThinkPHP5.1.* Crontab Package
License Apache-2.0
Package think-crontab
Short Description The ThinkPHP5.1.* Crontab Package
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package think-crontab
think-crontab for ThinkPHP5.1.*
安装
composer require xieyongfa/think-crontab
开始使用
创建如下数据表
创建计划任务
push_crontab($name, $class, $payload = [], $interval_sec = 60)
$name
是任务名
$class
是类名
$payload
是参数 数组格式
$interval_sec
是任务执行周期 默认60秒
创建计划任务例子
监听计划并执行,强烈建议配合supervisor使用,保证进程常驻
php think crontab --sleep=60 --memory=8
sleep参数:间隔多久查询一次 单位秒 memory参数:单个进程消耗内存超过多少M自动退出(配合supervisor可达到自动重启效果,防止内存溢出)
开发帮助及交流
- 作者QQ:2392523899
- 开发交流QQ群:453142313(新)
All versions of think-crontab with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package xieyongfa/think-crontab contains the following files
Loading the files please wait ....