-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from stelin/main
Add delay template
- Loading branch information
Showing
1,011 changed files
with
43,707 additions
and
7,492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,62 @@ | ||
<p align="center"> | ||
<a href="https://openjob.io"> | ||
<img alt="openjob" src="./public/image/logo.png"> | ||
</a> | ||
</p> | ||
|
||
<p align="center"> | ||
一款分布式高性能任务调度框架 | ||
</p> | ||
|
||
## 介绍 | ||
Openjob 是一款分布式高性能任务调度框架,支持多种定时任务和延时任务,采用无中心化设计,支持无线扩容。 | ||
Openjob 是一款分布式高性能任务调度框架,支持多种定时任务、延时任务、工作流设计,采用无中心化架构,底层使用一致性分片算法,支持无线扩容。 | ||
## 特性 | ||
##### 高可靠 | ||
分布式无状态设计,Master/Worker 架构,只依赖一种数据库(MySQL/PostgreSQL/Oracle) | ||
分布式无状态设计,采用 Master/Worker 架构,只依赖一种数据库(MySQL/PostgreSQL/Oracle) | ||
##### 高性能 | ||
任务调度精确到秒级别,支持轻量级分布式计算,任务采用分片算法,支持无限扩容。 | ||
任务调度精确到秒级别,支持轻量级分布式计算,底层使用一致性分片算法,支持无限扩容。 | ||
##### 定时调度 | ||
支持分布式定时任务、固定频率任务、高性能秒级任务、一次性任务定时调度。 | ||
##### 分布式计算 | ||
支持单机、广播、Map、MapReduce 和分片多种分布式编程模型,轻松实现大数据分布式计算。 | ||
##### 工作流 | ||
内置工作流调度引擎,支持可视化 DAG,方便高效实现复杂任务调度。 | ||
内置工作流调度引擎,支持可视化 DAG 设计,简单高效实现复杂任务调度。 | ||
##### 延时任务 | ||
基于 Redis 实现高性能延时任务,同时支持延时任务多级存储、丰富的任务管理。 | ||
基于 Redis 高性能延时任务,底层任务多级存储,提供丰富的任务管理。 | ||
##### 跨语言 | ||
官方提供 Java/Go/PHP 多余支持,以及Spring Boot、Gin、Swoft 等常见框架整合。 | ||
支持 Java/Go/PHP/Python 多语言 ,以及Spring Boot、Gin、Swoft 常见框架整合。 | ||
##### 权限管理 | ||
命名空间设计,支持丰富的权限管理,精确到按钮级别。 | ||
命名空间设计,丰富的按钮级别权限管理,。 | ||
##### 报警监控 | ||
全面的监控指标,丰富及时的报警方式,便于运维人员快速定位和解决线上问题。 | ||
|
||
## 依赖 | ||
|
||
```xml | ||
<openjob.worker.version>1.0.0</openjob.worker.version> | ||
<dependency> | ||
<groupId>io.openjob.worker</groupId> | ||
<artifactId>openjob-worker-core</artifactId> | ||
<version>${openjob.worker.version}</version> | ||
</dependency> | ||
|
||
<!--If your project base on `Spring Boot`, you can directly use the following dependencies--> | ||
<dependency> | ||
<groupId>io.openjob.worker</groupId> | ||
<artifactId>openjob-worker-spring-boot-starter</artifactId> | ||
<version>${openjob.worker.version}</version> | ||
</dependency> | ||
``` | ||
|
||
## 文档 | ||
- 官网([https://openjob.io](https://openjob.io)) | ||
- 文档([https://openjob.io/docs](https://openjob.io/docs/intro)) | ||
- 体验([https://demo.openjob.io](https://demo.openjob.io)) | ||
- openjob/123456 | ||
## 交流 | ||
- [官网](https://openjob.io) | ||
- [文档](https://openjob.io/docs/intro) | ||
- [试用](https://demo.openjob.io) | ||
## 联系 | ||
* Mail list: | ||
* [email protected] | ||
- Online chat: | ||
- [Gitter](https://gitter.im/openjob/openjob) | ||
|
||
## 协议 | ||
Please see [LICENSE](LICENSE) | ||
Openjob is under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,12 +50,22 @@ | |
- [Official documentation](https://openjob.io/docs/intro) | ||
## Live demo | ||
- Find the [live demo](https://demo.openjob.io) on our website. | ||
- username: openjob | ||
- password: openjob.io | ||
## Contact | ||
* Mail list: | ||
* [email protected] | ||
* [email protected] | ||
- Online chat: | ||
|
||
## Openjob ecosystem | ||
- [Openjob Website](https://github.com/open-job/openjob-website) - Openjob official website | ||
- [Openjob UI](https://github.com/open-job/openjob-ui) - UI for Openjob | ||
- [Openjob Samples](https://github.com/open-job/openjob-samples) - Samples for Openjob | ||
- [Openjob Docker](https://github.com/open-job/openjob-docker) - Openjob integration with docker | ||
|
||
## Contributors | ||
This project exists thanks to all the people who contribute. [[Contributors](https://github.com/open-job/openjob/graphs/contributors)]. | ||
|
||
## License | ||
Openjob is under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
import org.springframework.lang.Nullable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class SpringContext implements ApplicationContextAware { | ||
|
@@ -26,13 +26,14 @@ public static <T> T getBean(String name, Class<T> type) { | |
return applicationContext.getBean(name, type); | ||
} | ||
|
||
public static Object getBean(String name) { | ||
return applicationContext.getBean(name); | ||
} | ||
|
||
public static Boolean containsBean(String name) { | ||
return applicationContext.containsBean(name); | ||
} | ||
|
||
public static Object getBean(String name) { | ||
return applicationContext.getBean(name); | ||
} | ||
|
||
public static String[] getBeanNamesForType(@Nullable Class<?> type, boolean includeNonSingletons, boolean allowEagerInit) { | ||
return applicationContext.getBeanNamesForType(type, includeNonSingletons, allowEagerInit); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
import scala.runtime.BoxedUnit; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Slf4j | ||
|
2 changes: 1 addition & 1 deletion
2
openjob-common/src/main/java/io/openjob/common/constant/AkkaConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package io.openjob.common.constant; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class AkkaConstant { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import lombok.Getter; | ||
|
||
/** | ||
* @author inhere <[email protected]> | ||
* @author inhere [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
2 changes: 1 addition & 1 deletion
2
openjob-common/src/main/java/io/openjob/common/constant/CommonConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package io.openjob.common.constant; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class CommonConstant { | ||
|
2 changes: 1 addition & 1 deletion
2
openjob-common/src/main/java/io/openjob/common/constant/DelayConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package io.openjob.common.constant; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class DelayConstant { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import lombok.Getter; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
import java.util.List; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
2 changes: 1 addition & 1 deletion
2
openjob-common/src/main/java/io/openjob/common/constant/LogFieldConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package io.openjob.common.constant; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class LogFieldConstant { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import lombok.Getter; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import lombok.Getter; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import lombok.Getter; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@AllArgsConstructor | ||
|
2 changes: 1 addition & 1 deletion
2
openjob-common/src/main/java/io/openjob/common/constant/TaskConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package io.openjob.common.constant; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class TaskConstant { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
import java.util.List; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
import java.util.List; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Getter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
import lombok.Data; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.util.List; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
import lombok.Data; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
import io.openjob.common.util.KryoUtil; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @see akka https://doc.akka.io/docs/akka/current/serialization.html | ||
* @since 1.0.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.io.Serializable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.io.Serializable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.io.Serializable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,17 @@ | |
import java.util.List; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
public class ServerSubmitJobInstanceRequest implements Serializable { | ||
private Long jobId; | ||
private Long jobInstanceId; | ||
private String jobParamType; | ||
private String jobParams; | ||
private String jobExtendParamsType; | ||
private String jobExtendParams; | ||
private Long workflowId; | ||
private String processorType; | ||
private String processorInfo; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
import java.io.Serializable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
public class ServerWorkerHeartbeatRequest implements Serializable { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.io.Serializable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
@@ -16,11 +16,6 @@ public class WorkerDelayAddRequest implements Serializable { | |
*/ | ||
private Long deliveryId; | ||
|
||
/** | ||
* Namespace id. | ||
*/ | ||
private Long namespaceId; | ||
|
||
/** | ||
* Delay task unique id. | ||
* If is null or blank, will to auto generate. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.io.Serializable; | ||
|
||
/** | ||
* @author stelin <[email protected]> | ||
* @author stelin [email protected] | ||
* @since 1.0.0 | ||
*/ | ||
@Data | ||
|
Oops, something went wrong.