mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
Merge branch 'master' into jenkins_auto_build
This commit is contained in:
commit
38d475b0b5
@ -48,7 +48,7 @@ PowerJob 的设计目标为企业级的分布式任务调度平台,即成为
|
|||||||
| 日志白屏化 | 不支持 | 支持 | 不支持 | **支持** |
|
| 日志白屏化 | 不支持 | 支持 | 不支持 | **支持** |
|
||||||
| 调度方式及性能 | 基于数据库锁,有性能瓶颈 | 基于数据库锁,有性能瓶颈 | 不详 | **无锁化设计,性能强劲无上限** |
|
| 调度方式及性能 | 基于数据库锁,有性能瓶颈 | 基于数据库锁,有性能瓶颈 | 不详 | **无锁化设计,性能强劲无上限** |
|
||||||
| 报警监控 | 无 | 邮件 | 短信 | **邮件,提供接口允许开发者扩展** |
|
| 报警监控 | 无 | 邮件 | 短信 | **邮件,提供接口允许开发者扩展** |
|
||||||
| 系统依赖 | JDBC支持的关系型数据库(MySQL、Oracle...) | MySQL | 人民币(公测期间免费,哎,帮打个广告吧) | **任意Spring Data Jpa支持的关系型数据库(MySQL、Oracle...)** |
|
| 系统依赖 | JDBC支持的关系型数据库(MySQL、Oracle...) | MySQL | 人民币 | **任意Spring Data Jpa支持的关系型数据库(MySQL、Oracle...)** |
|
||||||
| DAG工作流 | 不支持 | 不支持 | 支持 | **支持** |
|
| DAG工作流 | 不支持 | 不支持 | 支持 | **支持** |
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ public class SwaggerConfig {
|
|||||||
public Docket createRestApi() {
|
public Docket createRestApi() {
|
||||||
// apiInfo()用来创建该Api的基本信息(这些基本信息会展现在文档页面中
|
// apiInfo()用来创建该Api的基本信息(这些基本信息会展现在文档页面中
|
||||||
ApiInfo apiInfo = new ApiInfoBuilder()
|
ApiInfo apiInfo = new ApiInfoBuilder()
|
||||||
.title("OhMyScheduler")
|
.title("PowerJob")
|
||||||
.description("Distributed scheduling and computing framework.")
|
.description("Distributed scheduling and computing framework.")
|
||||||
.license("Apache Licence 2")
|
.license("Apache Licence 2")
|
||||||
.termsOfServiceUrl("https://github.com/KFCFans/OhMyScheduler")
|
.termsOfServiceUrl("https://github.com/KFCFans/PowerJob")
|
||||||
.version("2.0.0")
|
.version("3.1.3")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return new Docket(DocumentationType.SWAGGER_2)
|
return new Docket(DocumentationType.SWAGGER_2)
|
||||||
|
@ -14,6 +14,7 @@ import java.util.concurrent.*;
|
|||||||
* 公用线程池配置
|
* 公用线程池配置
|
||||||
* omsTimingPool:用于执行定时任务的线程池
|
* omsTimingPool:用于执行定时任务的线程池
|
||||||
* omsCommonPool:用于执行普通任务的线程池
|
* omsCommonPool:用于执行普通任务的线程池
|
||||||
|
* omsCommonPool:用于执行后台任务的线程池,这类任务对时间不敏感,慢慢执行细水长流即可
|
||||||
* taskScheduler:用于定时调度的线程池
|
* taskScheduler:用于定时调度的线程池
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
|
@ -30,6 +30,6 @@ public interface JobInfoRepository extends JpaRepository<JobInfoDO, Long> {
|
|||||||
// 校验工作流包含的任务
|
// 校验工作流包含的任务
|
||||||
long countByAppIdAndStatusAndIdIn(Long appId, int status, List<Long> jobIds);
|
long countByAppIdAndStatusAndIdIn(Long appId, int status, List<Long> jobIds);
|
||||||
|
|
||||||
long countByAppId(long appId);
|
long countByAppIdAndStatusNot(long appId, int status);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import com.github.kfcfans.powerjob.common.response.ResultDTO;
|
|||||||
import com.github.kfcfans.powerjob.common.utils.JsonUtils;
|
import com.github.kfcfans.powerjob.common.utils.JsonUtils;
|
||||||
import com.github.kfcfans.powerjob.server.akka.OhMyServer;
|
import com.github.kfcfans.powerjob.server.akka.OhMyServer;
|
||||||
import com.github.kfcfans.powerjob.server.akka.requests.FriendQueryWorkerClusterStatusReq;
|
import com.github.kfcfans.powerjob.server.akka.requests.FriendQueryWorkerClusterStatusReq;
|
||||||
|
import com.github.kfcfans.powerjob.server.common.constans.SwitchableStatus;
|
||||||
import com.github.kfcfans.powerjob.server.persistence.core.model.AppInfoDO;
|
import com.github.kfcfans.powerjob.server.persistence.core.model.AppInfoDO;
|
||||||
import com.github.kfcfans.powerjob.server.persistence.core.repository.AppInfoRepository;
|
import com.github.kfcfans.powerjob.server.persistence.core.repository.AppInfoRepository;
|
||||||
import com.github.kfcfans.powerjob.server.persistence.core.repository.InstanceInfoRepository;
|
import com.github.kfcfans.powerjob.server.persistence.core.repository.InstanceInfoRepository;
|
||||||
@ -98,7 +99,7 @@ public class SystemInfoController {
|
|||||||
SystemOverviewVO overview = new SystemOverviewVO();
|
SystemOverviewVO overview = new SystemOverviewVO();
|
||||||
|
|
||||||
// 总任务数量
|
// 总任务数量
|
||||||
overview.setJobCount(jobInfoRepository.countByAppId(appId));
|
overview.setJobCount(jobInfoRepository.countByAppIdAndStatusNot(appId, SwitchableStatus.DELETED.getV()));
|
||||||
// 运行任务数
|
// 运行任务数
|
||||||
overview.setRunningInstanceCount(instanceInfoRepository.countByAppIdAndStatus(appId, InstanceStatus.RUNNING.getV()));
|
overview.setRunningInstanceCount(instanceInfoRepository.countByAppIdAndStatus(appId, InstanceStatus.RUNNING.getV()));
|
||||||
// 近期失败任务数(24H内)
|
// 近期失败任务数(24H内)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user