计划任务管理
2018-05-10
说明
- 分为Dashboard、agent、自注册、等多个模块
- agent可以独立运行,任务可以本地保存。
- 支持windows和类unix系统
展示
agent
;内部通讯监听端口
Listen = 2018
;临时数据目录, 当无法连接服务端时,用来数据临时存储
Datadir = /data/mcron/data
Workers = 100
;本地启动方式 任务读取自本地配置文件
LocalBoot = false
;如果boot选择local, 必须填写
CronPath = /data/mcron/crontab.json
;allow root user
AllowRoot = false
crontab.json
[
{
"taskid": 1,
"name": "",
"spec": "2 */5 * * * ?",
"protocol": "",
"command": "sh test.sh",
"user": "zhangsan",
"httpmethod": "",
"timeout": 0,
"multi": 0,
"retrytimes": 0,
"retryinterval": 0,
"tag": "",
"status": false
},
{
"taskid": 2,
"name": "",
"spec": "0 */7 * * * ?",
"protocol": "",
"command": "echo ls",
"user": "zhangsan",
"httpmethod": "",
"timeout": 0,
"multi": 0,
"retrytimes": 0,
"retryinterval": 0,
"tag": "",
"status": false
}
]