79 Star 420 Fork 111

baomidou / jobs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

jobs 分布式任务调度组件

项目名:Jobs 【致敬: 史蒂夫·乔布斯(Steve Jobs)】

目标是构建一个 Spring Boot 分布式任务 starter 插拔组件

Gitee   Github

特点

  • 不需独立部署类似 Swagger 模式的可插拔组件,引入 starter 注解启动
  • 只依赖数据库(默认 mybatis-plus 实现,支持主流数据库)
  • Rest API 接口适配任意系统
  • 实现接口支持切换为 JPA 等任意 ORM 框架
  • 任务 disruptor 异步处理

使用

  • jobs-admin 测试后台,你可以理解为调度中心 实现 IJobsService 接口即完全调度中心的数据层实现,JobsApiController 提供客户端注册入口

  • jobs-spring-boot-sample 测试样例,你可以为理解为任务实现端 配置 application.yml 调度中心地址多个英文逗号分割,任务实现 IJobsHandler 接口即完成

1、初始化 docs 对应数据库,如果无你可以参考数据结构初始化(当然你可以PR)

2、启动 admin 启动 sample (观察控制台日志及 jobs-log 表数据)

注意

Client 端默认为内网 ip 外网调用,启动命令添加 --jobs-app-ip=外网ip 指定 IP 端口防火墙需要放行

鸣谢

Jobs 参考 xxl-job 但是更为轻量,目的是构建类似 Swagger 模式的插拔组件。

VUE 前端:jobs-admin-web

界面效果

Copyright (c) 2011-2020, baomidou (jobob@qq.com). <p> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <p> https://www.apache.org/licenses/LICENSE-2.0 <p> Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

jobs 分布式任务调度组件 展开 收起
Java
Apache-2.0
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/baomidou/jobs.git
git@gitee.com:baomidou/jobs.git
baomidou
jobs
jobs
master

搜索帮助