黑白人生 +

计划任务管理

说明

展示

image image

image

image

image

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
    }
]        

文章列表

项目

关于我

Fork me on GitHub