Files
ppgo_job/README.md
2018-02-01 21:54:32 +08:00

68 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
PPGo_Job定时任务管理系统
====
原由公司运行php定时任务比较多已经无法通过crontab来进行管理定时任务是否执行是否按时执行执行结果是什么多台服务器里的定时任务怎么管理定时任务如何排错……为了解决以上问题利用业余时间开发了PPGo_Job定时任务管理系统。
目前生产环境已经无故障运行了近一年时间。
主要特点:
----
- 1、支持本地定时任务、跨服务器管理密码或者密钥两种方式
- 2、支持秒级定时任务
- 3、支持复制任务快速添加任务支持批量启动和停止任务
- 4、定时任务日志详细任务运行用时执行结果等方便任务排错
- 5、资源占用小支持大并发
- 6、支持任务分组常用小功能多更方便管理定时任务
- 7、跨平台易部署分分钟搞定
感觉不错的话,给个星星吧
效果展示
----
任务界面<br/>
![github](https://github.com/george518/PPGo_Job/blob/master/static/images/task.png?raw=true "github")
<br/><br/>
添加服务器界面<br/>
![github](https://github.com/george518/PPGo_Job/blob/master/static/images/server.png?raw=true "github")
<br/><br/>
安装方法
----
1、go get github.com/george518/PPGo_Job
2、创建mysql数据库并将ppgo_job.sql导入
3、修改config 配置数据库
4、运行 go build
5、运行 ./run.sh start|stop
前台访问http://your_host:8080
用户名admin 密码123456
排错
----
go build 时遇到以下错误:
jobs/job.go:19:2: cannot find package "golang.org/x/crypto/ssh" in any of:
需要 git clone https://github.com/golang/crypto.git
并拷贝到 $GOPATH/src/golang.org/x/ 下就OK
感谢
----
https://github.com/lisijie/webcron.git
升级日志
----
v1.0
1、初始版本 本地任务的调取和执行
2、定时任务执行日志
3、定时任务执行时间
v1.1
1、优化界面
2、优化列表的登录
3、增加初始化任务
v1.2
1、新增服务器资源添加 新增数据表pp_task_server
2、新增远程服务器任务执行(密码验证和密钥验证登录)
3、删除邮件通知功能pp_task删除两个有关字段