mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: NPE when InstanceTimeLimit is null #207
This commit is contained in:
parent
d06e5bc029
commit
e97bdc71c7
@ -233,6 +233,9 @@ public class JobService {
|
|||||||
if (jobInfoDO.getTaskRetryNum() == null) {
|
if (jobInfoDO.getTaskRetryNum() == null) {
|
||||||
jobInfoDO.setTaskRetryNum(0);
|
jobInfoDO.setTaskRetryNum(0);
|
||||||
}
|
}
|
||||||
|
if (jobInfoDO.getInstanceTimeLimit() == null) {
|
||||||
|
jobInfoDO.setInstanceTimeLimit(0L);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static JobInfoDTO convert(JobInfoDO jobInfoDO) {
|
private static JobInfoDTO convert(JobInfoDO jobInfoDO) {
|
||||||
|
@ -13,7 +13,6 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 广播处理器 示例
|
* 广播处理器 示例
|
||||||
* com.github.kfcfans.oms.server.processors.BroadcastProcessorDemo
|
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/4/17
|
* @since 2020/4/17
|
||||||
|
@ -21,8 +21,7 @@ import java.util.concurrent.ThreadLocalRandom;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* MapReduce 处理器示例
|
* MapReduce 处理器示例
|
||||||
* com.github.kfcfans.oms.server.processors.MapReduceProcessorDemo
|
* 控制台参数:{"batchSize": 100, "batchNum": 2}
|
||||||
* {"batchSize": 100, "batchNum": 2}
|
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/4/17
|
* @since 2020/4/17
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Collections;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 单机处理器 示例
|
* 单机处理器 示例
|
||||||
* com.github.kfcfans.oms.server.processors.StandaloneProcessorDemo
|
* com.github.kfcfans.powerjob.samples.processors.StandaloneProcessorDemo
|
||||||
*
|
*
|
||||||
* @author tjq
|
* @author tjq
|
||||||
* @since 2020/4/17
|
* @since 2020/4/17
|
||||||
|
Loading…
x
Reference in New Issue
Block a user