diff --git a/README.md b/README.md index 7561250..6137b21 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,16 @@ 原有的延时任务拆分为独立项目[延迟队列](https://github.com/ouqiang/delay-queue) ## 功能特性 -* Web界面管理定时任务, 支持动态添加、删除、编辑任务 +* Web界面管理定时任务, 支持动态添加、删除任务 * crontab时间表达式,精确到秒 * 任务执行失败重试设置 * 任务超时设置 * 任务依赖配置 * 任务类型 * shell任务 - > 在远程服务器上执行shell命令 + > 在任务节点上执行shell命令 * HTTP任务 - > 访问指定的URL地址 + > 访问指定的URL地址, 由调度器直接执行, 不依赖任务节点 * 查看任务执行日志 * 任务执行结果通知, 支持邮件、Slack @@ -39,23 +39,23 @@ ## 安装 ### 二进制安装 -> Windows平台默认后台运行) 1. 解压压缩包   2. `cd 解压目录` 3. 启动 * 调度器启动 * Windows: `gocron.exe web` * Linux、Mac OS: `./gocron web` -* 任务执行器启动 +* 任务节点启动 * Windows: `gocron-node.exe ip:port (默认0.0.0.0:5921)` * Linux、Mac OS: `./gocron-node ip:port (默认0.0.0.0:5921)` 4. 浏览器访问 http://localhost:5920 + ### 源码安装 1. `go`语言版本1.7+ 2. `go get -d github.com/ouqiang/gocron` 3. 编译 * 调度器 `go build -tags gocron -o gocron` - * 任务执行器 `go build -tags node -o gocron-node` + * 任务节点 `go build -tags node -o gocron-node` 4. 启动、访问方式同上 ### 命令 @@ -66,8 +66,6 @@ * -e 指定运行环境, dev|test|prod, dev模式下可查看更多日志信息, 默认prod * -d 后台运行 * -h 查看帮助 -* gocron serv - * -s stop|status stop:停止gocron status:查看运行状态 * gocron-node ip:port, 默认0.0.0.0:5921 ## 程序使用的组件 diff --git a/scheduler.png b/scheduler.png index c614e76..2ed456a 100644 Binary files a/scheduler.png and b/scheduler.png differ diff --git a/templates/common/header.html b/templates/common/header.html index a68c057..140bc53 100644 --- a/templates/common/header.html +++ b/templates/common/header.html @@ -61,12 +61,11 @@
diff --git a/templates/host/index.html b/templates/host/index.html index b96d6a0..030afbf 100644 --- a/templates/host/index.html +++ b/templates/host/index.html @@ -10,7 +10,7 @@
- 添加主机 + 添加节点
diff --git a/templates/host/menu.html b/templates/host/menu.html index e9f7c11..4973c54 100644 --- a/templates/host/menu.html +++ b/templates/host/menu.html @@ -2,7 +2,7 @@
diff --git a/templates/task/index.html b/templates/task/index.html index 8eb1a03..b15324b 100644 --- a/templates/task/index.html +++ b/templates/task/index.html @@ -24,7 +24,7 @@
- + {{{range $i, $v := .Hosts}}} {{{end}}} -   添加主机 +   添加节点