fix - 添加节点告警逻辑
This commit is contained in:
parent
f566fb0009
commit
7c60c3c179
@ -38,7 +38,7 @@ public class CustomAddTimerJobCmd extends AbstractCommand<Void> implements Seria
|
||||
Date alterTime;
|
||||
switch (dto.getTimeUnit()) {
|
||||
case "M":
|
||||
alterTime = DateUtil.offsetDay(new Date(), dto.getDelayTime());
|
||||
alterTime = DateUtil.offsetMinute(new Date(), dto.getDelayTime());
|
||||
break;
|
||||
case "H":
|
||||
alterTime = DateUtil.offsetHour(new Date(), dto.getDelayTime());
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package cn.axzo.workflow.server.common.config;
|
||||
|
||||
import cn.azxo.framework.common.annotation.OnlyPodsEnvironment;
|
||||
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@ -14,7 +13,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author wangli
|
||||
* @since 2024/4/28 14:02
|
||||
*/
|
||||
@OnlyPodsEnvironment
|
||||
//@OnlyPodsEnvironment
|
||||
@Configuration
|
||||
public class XxlJobConfiguration {
|
||||
Logger logger = LoggerFactory.getLogger(XxlJobConfiguration.class);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user