feat: 1.5.0
1. 优化状态的显示 2. 页面新增数据类型展示 3. 迁移了部分枚举到服务端模块
This commit is contained in:
parent
78abf3fa1e
commit
7c6eb9ebdf
@ -1,24 +0,0 @@
|
|||||||
package com.aizuda.easy.retry.common.core.enums;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 存储类型
|
|
||||||
*
|
|
||||||
* @author: www.byteblogs.com
|
|
||||||
* @date : 2021-11-26 18:01
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
public enum StorageTypeEnum {
|
|
||||||
|
|
||||||
MYSQL(1),
|
|
||||||
REDIS(2);
|
|
||||||
|
|
||||||
private final Integer type;
|
|
||||||
|
|
||||||
StorageTypeEnum(int type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.aizuda.easy.retry.common.core.enums;
|
package com.aizuda.easy.retry.server.enums;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -1,6 +1,5 @@
|
|||||||
package com.aizuda.easy.retry.common.core.enums;
|
package com.aizuda.easy.retry.server.enums;
|
||||||
|
|
||||||
import com.aizuda.easy.retry.common.core.exception.EasyRetryCommonException;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
import java.time.temporal.ChronoUnit;
|
import java.time.temporal.ChronoUnit;
|
@ -1,4 +1,4 @@
|
|||||||
package com.aizuda.easy.retry.common.core.enums;
|
package com.aizuda.easy.retry.server.enums;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package com.aizuda.easy.retry.common.core.enums;
|
package com.aizuda.easy.retry.server.enums;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -4,7 +4,7 @@ import com.aizuda.easy.retry.server.persistence.mybatis.po.GroupConfig;
|
|||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.NotifyConfig;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.NotifyConfig;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.SceneConfig;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.SceneConfig;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.aizuda.easy.retry.common.core.enums.StatusEnum;
|
import com.aizuda.easy.retry.server.enums.StatusEnum;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package com.aizuda.easy.retry.server.persistence.support.access.retry;
|
package com.aizuda.easy.retry.server.persistence.support.access.retry;
|
||||||
|
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
||||||
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
|
||||||
import com.aizuda.easy.retry.common.core.util.JsonUtil;
|
import com.aizuda.easy.retry.common.core.util.JsonUtil;
|
||||||
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskMapper;
|
||||||
|
@ -3,7 +3,7 @@ package com.aizuda.easy.retry.server.server.handler;
|
|||||||
import cn.hutool.core.net.url.UrlQuery;
|
import cn.hutool.core.net.url.UrlQuery;
|
||||||
import com.aizuda.easy.retry.server.model.dto.RetryTaskDTO;
|
import com.aizuda.easy.retry.server.model.dto.RetryTaskDTO;
|
||||||
import com.aizuda.easy.retry.server.service.RetryService;
|
import com.aizuda.easy.retry.server.service.RetryService;
|
||||||
import com.aizuda.easy.retry.common.core.enums.StatusEnum;
|
import com.aizuda.easy.retry.server.enums.StatusEnum;
|
||||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||||
import com.aizuda.easy.retry.common.core.model.NettyResult;
|
import com.aizuda.easy.retry.common.core.model.NettyResult;
|
||||||
import com.aizuda.easy.retry.common.core.model.EasyRetryRequest;
|
import com.aizuda.easy.retry.common.core.model.EasyRetryRequest;
|
||||||
|
@ -2,7 +2,7 @@ package com.aizuda.easy.retry.server.service.impl;
|
|||||||
|
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
import cn.hutool.core.util.HashUtil;
|
import cn.hutool.core.util.HashUtil;
|
||||||
import com.aizuda.easy.retry.common.core.enums.IdGeneratorMode;
|
import com.aizuda.easy.retry.server.enums.IdGeneratorMode;
|
||||||
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.GroupConfigMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.GroupConfigMapper;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.NotifyConfigMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.NotifyConfigMapper;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package com.aizuda.easy.retry.server.service.impl;
|
package com.aizuda.easy.retry.server.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
import com.aizuda.easy.retry.common.core.enums.DelayLevelEnum;
|
import com.aizuda.easy.retry.server.enums.DelayLevelEnum;
|
||||||
import com.aizuda.easy.retry.common.core.enums.StatusEnum;
|
import com.aizuda.easy.retry.server.enums.StatusEnum;
|
||||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||||
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
||||||
import com.aizuda.easy.retry.server.model.dto.RetryTaskDTO;
|
import com.aizuda.easy.retry.server.model.dto.RetryTaskDTO;
|
||||||
@ -119,7 +119,7 @@ public class RetryServiceImpl implements RetryService {
|
|||||||
* 若配置了默认初始化场景配置,则发现上报数据的时候未配置场景,默认生成一个场景
|
* 若配置了默认初始化场景配置,则发现上报数据的时候未配置场景,默认生成一个场景
|
||||||
* backOff(退避策略): 等级策略
|
* backOff(退避策略): 等级策略
|
||||||
* maxRetryCount(最大重试次数): 26
|
* maxRetryCount(最大重试次数): 26
|
||||||
* triggerInterval(间隔时间): see: {@link com.aizuda.easy.retry.common.core.enums.DelayLevelEnum}
|
* triggerInterval(间隔时间): see: {@link DelayLevelEnum}
|
||||||
*
|
*
|
||||||
* @param retryTaskDTO 重试上报DTO
|
* @param retryTaskDTO 重试上报DTO
|
||||||
*/
|
*/
|
||||||
|
@ -49,7 +49,7 @@ public class RetryTaskLogServiceImpl implements RetryTaskLogService {
|
|||||||
|
|
||||||
retryTaskLogLambdaQueryWrapper.select(RetryTaskLog::getGroupName, RetryTaskLog::getId, RetryTaskLog::getSceneName,
|
retryTaskLogLambdaQueryWrapper.select(RetryTaskLog::getGroupName, RetryTaskLog::getId, RetryTaskLog::getSceneName,
|
||||||
RetryTaskLog::getIdempotentId, RetryTaskLog::getBizNo, RetryTaskLog::getErrorMessage, RetryTaskLog::getRetryStatus,
|
RetryTaskLog::getIdempotentId, RetryTaskLog::getBizNo, RetryTaskLog::getErrorMessage, RetryTaskLog::getRetryStatus,
|
||||||
RetryTaskLog::getCreateDt, RetryTaskLog::getUniqueId);
|
RetryTaskLog::getCreateDt, RetryTaskLog::getUniqueId, RetryTaskLog::getTaskType);
|
||||||
PageDTO<RetryTaskLog> retryTaskLogPageDTO = retryTaskLogMapper.selectPage(pageDTO, retryTaskLogLambdaQueryWrapper.orderByDesc(RetryTaskLog::getCreateDt));
|
PageDTO<RetryTaskLog> retryTaskLogPageDTO = retryTaskLogMapper.selectPage(pageDTO, retryTaskLogLambdaQueryWrapper.orderByDesc(RetryTaskLog::getCreateDt));
|
||||||
|
|
||||||
return new PageResult<>(
|
return new PageResult<>(
|
||||||
|
@ -9,6 +9,7 @@ import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
|||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskMapper;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.GroupConfig;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.GroupConfig;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.RetryTask;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.RetryTask;
|
||||||
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.RetryTaskLog;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.ServerNode;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.ServerNode;
|
||||||
import com.aizuda.easy.retry.server.persistence.support.ConfigAccess;
|
import com.aizuda.easy.retry.server.persistence.support.ConfigAccess;
|
||||||
import com.aizuda.easy.retry.server.service.RetryTaskService;
|
import com.aizuda.easy.retry.server.service.RetryTaskService;
|
||||||
@ -98,7 +99,7 @@ public class RetryTaskServiceImpl implements RetryTaskService {
|
|||||||
|
|
||||||
retryTaskLambdaQueryWrapper.select(RetryTask::getId, RetryTask::getBizNo, RetryTask::getIdempotentId,
|
retryTaskLambdaQueryWrapper.select(RetryTask::getId, RetryTask::getBizNo, RetryTask::getIdempotentId,
|
||||||
RetryTask::getGroupName, RetryTask::getNextTriggerAt, RetryTask::getRetryCount,
|
RetryTask::getGroupName, RetryTask::getNextTriggerAt, RetryTask::getRetryCount,
|
||||||
RetryTask::getRetryStatus, RetryTask::getUpdateDt, RetryTask::getSceneName, RetryTask::getUniqueId);
|
RetryTask::getRetryStatus, RetryTask::getUpdateDt, RetryTask::getSceneName, RetryTask::getUniqueId, RetryTask::getTaskType);
|
||||||
pageDTO = retryTaskMapper.selectPage(pageDTO, retryTaskLambdaQueryWrapper.orderByDesc(RetryTask::getCreateDt));
|
pageDTO = retryTaskMapper.selectPage(pageDTO, retryTaskLambdaQueryWrapper.orderByDesc(RetryTask::getCreateDt));
|
||||||
return new PageResult<>(pageDTO, RetryTaskResponseVOConverter.INSTANCE.toRetryTaskResponseVO(pageDTO.getRecords()));
|
return new PageResult<>(pageDTO, RetryTaskResponseVOConverter.INSTANCE.toRetryTaskResponseVO(pageDTO.getRecords()));
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ package com.aizuda.easy.retry.server.support.allocate.client;
|
|||||||
|
|
||||||
import com.aizuda.easy.retry.server.support.allocate.common.ConsistentHashRouter;
|
import com.aizuda.easy.retry.server.support.allocate.common.ConsistentHashRouter;
|
||||||
import com.aizuda.easy.retry.server.support.allocate.common.Node;
|
import com.aizuda.easy.retry.server.support.allocate.common.Node;
|
||||||
import com.aizuda.easy.retry.common.core.enums.AllocationAlgorithmEnum;
|
import com.aizuda.easy.retry.server.enums.AllocationAlgorithmEnum;
|
||||||
import com.aizuda.easy.retry.server.support.ClientLoadBalance;
|
import com.aizuda.easy.retry.server.support.ClientLoadBalance;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.aizuda.easy.retry.server.support.allocate.client;
|
package com.aizuda.easy.retry.server.support.allocate.client;
|
||||||
|
|
||||||
import com.aizuda.easy.retry.common.core.enums.AllocationAlgorithmEnum;
|
import com.aizuda.easy.retry.server.enums.AllocationAlgorithmEnum;
|
||||||
import com.aizuda.easy.retry.server.support.ClientLoadBalance;
|
import com.aizuda.easy.retry.server.support.ClientLoadBalance;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ -3,8 +3,11 @@ package com.aizuda.easy.retry.server.support.dispatch;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 扫描任务模型
|
||||||
|
*
|
||||||
* @author: ww.byteblogs.com
|
* @author: ww.byteblogs.com
|
||||||
* @date : 2023-06-05 16:30
|
* @date : 2023-06-05 16:30
|
||||||
|
* @since 1.5.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ScanTaskDTO {
|
public class ScanTaskDTO {
|
||||||
|
@ -2,11 +2,10 @@ package com.aizuda.easy.retry.server.support.dispatch.actor.exec;
|
|||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
import com.aizuda.easy.retry.client.model.DispatchRetryDTO;
|
|
||||||
import com.aizuda.easy.retry.client.model.DispatchRetryResultDTO;
|
import com.aizuda.easy.retry.client.model.DispatchRetryResultDTO;
|
||||||
import com.aizuda.easy.retry.client.model.RetryCallbackDTO;
|
import com.aizuda.easy.retry.client.model.RetryCallbackDTO;
|
||||||
import com.aizuda.easy.retry.common.core.constant.SystemConstants;
|
import com.aizuda.easy.retry.common.core.constant.SystemConstants;
|
||||||
import com.aizuda.easy.retry.common.core.enums.StatusEnum;
|
import com.aizuda.easy.retry.server.enums.StatusEnum;
|
||||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||||
import com.aizuda.easy.retry.common.core.model.EasyRetryHeaders;
|
import com.aizuda.easy.retry.common.core.model.EasyRetryHeaders;
|
||||||
import com.aizuda.easy.retry.common.core.model.Result;
|
import com.aizuda.easy.retry.common.core.model.Result;
|
||||||
@ -19,7 +18,6 @@ import com.aizuda.easy.retry.server.persistence.mybatis.po.ServerNode;
|
|||||||
import com.aizuda.easy.retry.server.service.convert.RetryTaskLogConverter;
|
import com.aizuda.easy.retry.server.service.convert.RetryTaskLogConverter;
|
||||||
import com.aizuda.easy.retry.server.support.IdempotentStrategy;
|
import com.aizuda.easy.retry.server.support.IdempotentStrategy;
|
||||||
import com.aizuda.easy.retry.server.support.context.CallbackRetryContext;
|
import com.aizuda.easy.retry.server.support.context.CallbackRetryContext;
|
||||||
import com.aizuda.easy.retry.server.support.context.MaxAttemptsPersistenceRetryContext;
|
|
||||||
import com.aizuda.easy.retry.server.support.retry.RetryExecutor;
|
import com.aizuda.easy.retry.server.support.retry.RetryExecutor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
@ -3,11 +3,11 @@ package com.aizuda.easy.retry.server.support.dispatch.actor.result;
|
|||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
import com.aizuda.easy.retry.common.core.constant.SystemConstants;
|
import com.aizuda.easy.retry.common.core.constant.SystemConstants;
|
||||||
|
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
||||||
import com.aizuda.easy.retry.server.enums.TaskTypeEnum;
|
import com.aizuda.easy.retry.server.enums.TaskTypeEnum;
|
||||||
import com.aizuda.easy.retry.server.support.handler.CallbackRetryTaskHandler;
|
import com.aizuda.easy.retry.server.support.handler.CallbackRetryTaskHandler;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
||||||
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
|
||||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||||
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskLogMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskLogMapper;
|
||||||
|
@ -2,11 +2,11 @@ package com.aizuda.easy.retry.server.support.dispatch.actor.result;
|
|||||||
|
|
||||||
import akka.actor.AbstractActor;
|
import akka.actor.AbstractActor;
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
||||||
import com.aizuda.easy.retry.server.enums.TaskTypeEnum;
|
import com.aizuda.easy.retry.server.enums.TaskTypeEnum;
|
||||||
import com.aizuda.easy.retry.server.support.handler.CallbackRetryTaskHandler;
|
import com.aizuda.easy.retry.server.support.handler.CallbackRetryTaskHandler;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
||||||
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
|
||||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||||
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
import com.aizuda.easy.retry.server.exception.EasyRetryServerException;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskLogMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.RetryTaskLogMapper;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.aizuda.easy.retry.server.support.generator.id;
|
package com.aizuda.easy.retry.server.support.generator.id;
|
||||||
|
|
||||||
import com.aizuda.easy.retry.common.core.enums.IdGeneratorMode;
|
import com.aizuda.easy.retry.server.enums.IdGeneratorMode;
|
||||||
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
import com.aizuda.easy.retry.common.core.log.LogUtils;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.SequenceAllocMapper;
|
import com.aizuda.easy.retry.server.persistence.mybatis.mapper.SequenceAllocMapper;
|
||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.SequenceAlloc;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.SequenceAlloc;
|
||||||
|
@ -2,7 +2,7 @@ package com.aizuda.easy.retry.server.support.generator.id;
|
|||||||
|
|
||||||
import cn.hutool.core.lang.Snowflake;
|
import cn.hutool.core.lang.Snowflake;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
import com.aizuda.easy.retry.common.core.enums.IdGeneratorMode;
|
import com.aizuda.easy.retry.server.enums.IdGeneratorMode;
|
||||||
import com.aizuda.easy.retry.server.support.generator.IdGenerator;
|
import com.aizuda.easy.retry.server.support.generator.IdGenerator;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package com.aizuda.easy.retry.server.support.strategy;
|
|||||||
|
|
||||||
import com.aizuda.easy.retry.client.model.DispatchRetryResultDTO;
|
import com.aizuda.easy.retry.client.model.DispatchRetryResultDTO;
|
||||||
import com.aizuda.easy.retry.common.core.enums.RetryResultStatusEnum;
|
import com.aizuda.easy.retry.common.core.enums.RetryResultStatusEnum;
|
||||||
import com.aizuda.easy.retry.common.core.enums.StatusEnum;
|
import com.aizuda.easy.retry.server.enums.StatusEnum;
|
||||||
import com.aizuda.easy.retry.common.core.model.Result;
|
import com.aizuda.easy.retry.common.core.model.Result;
|
||||||
import com.aizuda.easy.retry.server.support.RetryContext;
|
import com.aizuda.easy.retry.server.support.RetryContext;
|
||||||
import com.aizuda.easy.retry.server.support.StopStrategy;
|
import com.aizuda.easy.retry.server.support.StopStrategy;
|
||||||
|
@ -7,7 +7,7 @@ import com.aizuda.easy.retry.server.persistence.mybatis.po.RetryTask;
|
|||||||
import com.aizuda.easy.retry.server.persistence.mybatis.po.SceneConfig;
|
import com.aizuda.easy.retry.server.persistence.mybatis.po.SceneConfig;
|
||||||
import com.aizuda.easy.retry.server.persistence.support.ConfigAccess;
|
import com.aizuda.easy.retry.server.persistence.support.ConfigAccess;
|
||||||
import com.aizuda.easy.retry.common.core.context.SpringContext;
|
import com.aizuda.easy.retry.common.core.context.SpringContext;
|
||||||
import com.aizuda.easy.retry.common.core.enums.DelayLevelEnum;
|
import com.aizuda.easy.retry.server.enums.DelayLevelEnum;
|
||||||
import com.aizuda.easy.retry.common.core.util.CronExpression;
|
import com.aizuda.easy.retry.common.core.util.CronExpression;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.aizuda.easy.retry.server.support.RetryContext;
|
import com.aizuda.easy.retry.server.support.RetryContext;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.aizuda.easy.retry.server.web.model.request;
|
package com.aizuda.easy.retry.server.web.model.request;
|
||||||
|
|
||||||
import com.aizuda.easy.retry.common.core.enums.RetryStatusEnum;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.hibernate.validator.constraints.NotBlank;
|
import org.hibernate.validator.constraints.NotBlank;
|
||||||
import org.hibernate.validator.constraints.NotEmpty;
|
import org.hibernate.validator.constraints.NotEmpty;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.aizuda.easy.retry.server.web.model.request;
|
package com.aizuda.easy.retry.server.web.model.request;
|
||||||
|
|
||||||
import com.aizuda.easy.retry.common.core.enums.IdGeneratorMode;
|
import com.aizuda.easy.retry.server.enums.IdGeneratorMode;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.hibernate.validator.constraints.NotBlank;
|
import org.hibernate.validator.constraints.NotBlank;
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ public class RetryDeadLetterResponseVO {
|
|||||||
|
|
||||||
private String extAttrs;
|
private String extAttrs;
|
||||||
|
|
||||||
|
private Integer taskType;
|
||||||
|
|
||||||
private LocalDateTime createDt;
|
private LocalDateTime createDt;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,8 @@ public class RetryTaskLogResponseVO {
|
|||||||
|
|
||||||
private Integer retryStatus;
|
private Integer retryStatus;
|
||||||
|
|
||||||
|
private Integer taskType;
|
||||||
|
|
||||||
private String errorMessage;
|
private String errorMessage;
|
||||||
|
|
||||||
private LocalDateTime createDt;
|
private LocalDateTime createDt;
|
||||||
|
@ -36,6 +36,8 @@ public class RetryTaskResponseVO {
|
|||||||
|
|
||||||
private Integer retryStatus;
|
private Integer retryStatus;
|
||||||
|
|
||||||
|
private Integer taskType;
|
||||||
|
|
||||||
private LocalDateTime createDt;
|
private LocalDateTime createDt;
|
||||||
|
|
||||||
private LocalDateTime updateDt;
|
private LocalDateTime updateDt;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
port: 8089
|
port: 8088
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: dev
|
||||||
|
@ -56,6 +56,11 @@
|
|||||||
<span slot="serial" slot-scope="text, record">
|
<span slot="serial" slot-scope="text, record">
|
||||||
{{ record.id }}
|
{{ record.id }}
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="taskType" slot-scope="text">
|
||||||
|
<a-tag :color="taskType[text].color">
|
||||||
|
{{ taskType[text].name }}
|
||||||
|
</a-tag>
|
||||||
|
</span>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<template>
|
<template>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
@ -118,6 +123,16 @@ export default {
|
|||||||
advanced: false,
|
advanced: false,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
|
taskType: {
|
||||||
|
'1': {
|
||||||
|
'name': '重试数据',
|
||||||
|
'color': '#d06892'
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
'name': '回调数据',
|
||||||
|
'color': '#f5a22d'
|
||||||
|
}
|
||||||
|
},
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@ -145,6 +160,12 @@ export default {
|
|||||||
dataIndex: 'bizNo',
|
dataIndex: 'bizNo',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '任务类型',
|
||||||
|
dataIndex: 'taskType',
|
||||||
|
scopedSlots: { customRender: 'taskType' },
|
||||||
|
width: '5%'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
dataIndex: 'createDt',
|
dataIndex: 'createDt',
|
||||||
|
@ -27,7 +27,9 @@
|
|||||||
{{ parseDate( retryInfo.createDt) }}
|
{{ parseDate( retryInfo.createDt) }}
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="当前重试状态">
|
<a-descriptions-item label="当前重试状态">
|
||||||
|
<a-tag color="red">
|
||||||
{{ retryStatus[retryInfo.retryStatus] }}
|
{{ retryStatus[retryInfo.retryStatus] }}
|
||||||
|
</a-tag>
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="执行器名称" :span="3">
|
<a-descriptions-item label="执行器名称" :span="3">
|
||||||
{{ retryInfo.executorName }}
|
{{ retryInfo.executorName }}
|
||||||
@ -56,8 +58,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
retryInfo: {},
|
retryInfo: {},
|
||||||
retryStatus: {
|
retryStatus: {
|
||||||
'0': '重试中',
|
'0': '处理中',
|
||||||
'1': '重试完成',
|
'1': '处理成功',
|
||||||
'2': '最大次数'
|
'2': '最大次数'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,16 @@
|
|||||||
<span slot="serial" slot-scope="text, record, index">
|
<span slot="serial" slot-scope="text, record, index">
|
||||||
{{ index + 1 }}
|
{{ index + 1 }}
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="taskType" slot-scope="text">
|
||||||
|
<a-tag :color="taskType[text].color">
|
||||||
|
{{ taskType[text].name }}
|
||||||
|
</a-tag>
|
||||||
|
</span>
|
||||||
|
<span slot="retryStatus" slot-scope="text">
|
||||||
|
<a-tag :color="retryStatus[text].color">
|
||||||
|
{{ retryStatus[text].name }}
|
||||||
|
</a-tag>
|
||||||
|
</span>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<template>
|
<template>
|
||||||
<a @click="handleInfo(record)">详情</a>
|
<a @click="handleInfo(record)">详情</a>
|
||||||
@ -86,14 +96,6 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
}
|
}
|
||||||
// groupName: {
|
|
||||||
// type: String,
|
|
||||||
// default: ''
|
|
||||||
// },
|
|
||||||
// uniqueId: {
|
|
||||||
// type: String,
|
|
||||||
// default: ''
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@ -104,9 +106,28 @@ export default {
|
|||||||
// 查询参数
|
// 查询参数
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
retryStatus: {
|
retryStatus: {
|
||||||
'0': '重试中',
|
'0': {
|
||||||
'1': '重试完成',
|
'name': '处理中',
|
||||||
'2': '最大次数'
|
'color': '#9c1f1f'
|
||||||
|
},
|
||||||
|
'1': {
|
||||||
|
'name': '处理成功',
|
||||||
|
'color': '#f5a22d'
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
'name': '最大次数',
|
||||||
|
'color': '#68a5d0'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
taskType: {
|
||||||
|
'1': {
|
||||||
|
'name': '重试数据',
|
||||||
|
'color': '#d06892'
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
'name': '回调数据',
|
||||||
|
'color': '#f5522d'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
@ -146,13 +167,19 @@ export default {
|
|||||||
{
|
{
|
||||||
title: '重试状态',
|
title: '重试状态',
|
||||||
dataIndex: 'retryStatus',
|
dataIndex: 'retryStatus',
|
||||||
customRender: (text) => this.retryStatus[text],
|
scopedSlots: { customRender: 'retryStatus' },
|
||||||
|
width: '5%'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '任务类型',
|
||||||
|
dataIndex: 'taskType',
|
||||||
|
scopedSlots: { customRender: 'taskType' },
|
||||||
width: '5%'
|
width: '5%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '失败原因',
|
title: '失败原因',
|
||||||
dataIndex: 'errorMessage',
|
dataIndex: 'errorMessage',
|
||||||
width: '25%'
|
width: '15%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '触发时间',
|
title: '触发时间',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<page-header-wrapper @back="() => $router.go(-1)" style='margin: -24px -1px 0'>
|
<page-header-wrapper @back="() => $router.go(-1)" style="margin: -24px -1px 0">
|
||||||
<div></div>
|
<div></div>
|
||||||
</page-header-wrapper>
|
</page-header-wrapper>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
@ -23,8 +23,14 @@
|
|||||||
<a-descriptions-item label="重试次数">
|
<a-descriptions-item label="重试次数">
|
||||||
{{ retryTaskInfo.retryCount }}
|
{{ retryTaskInfo.retryCount }}
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="重试状态">
|
<a-descriptions-item label="重试状态 | 数据类型">
|
||||||
|
<a-tag color="red">
|
||||||
{{ retryStatus[retryTaskInfo.retryStatus] }}
|
{{ retryStatus[retryTaskInfo.retryStatus] }}
|
||||||
|
</a-tag>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-tag :color="taskType[retryTaskInfo.taskType].color">
|
||||||
|
{{ taskType[retryTaskInfo.taskType].name }}
|
||||||
|
</a-tag>
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="触发时间">
|
<a-descriptions-item label="触发时间">
|
||||||
{{ retryTaskInfo.createDt }}
|
{{ retryTaskInfo.createDt }}
|
||||||
@ -43,9 +49,9 @@
|
|||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
</a-descriptions>
|
</a-descriptions>
|
||||||
</a-card>
|
</a-card>
|
||||||
<div style='margin: 20px'></div>
|
<div style="margin: 20px"></div>
|
||||||
<a-card title="日志列表" style="width: 100%">
|
<a-card title="日志列表" style="width: 100%">
|
||||||
<RetryLogList v-if="retryTaskInfo !== null" ref='retryLogListRef' :showSearch="false" :group-name="retryTaskInfo.groupName" :unique-id="retryTaskInfo.uniqueId"/>
|
<RetryLogList v-if="retryTaskInfo !== null" ref="retryLogListRef" :showSearch="false" :group-name="retryTaskInfo.groupName" :unique-id="retryTaskInfo.uniqueId"/>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -64,9 +70,19 @@ export default {
|
|||||||
return {
|
return {
|
||||||
retryTaskInfo: {},
|
retryTaskInfo: {},
|
||||||
retryStatus: {
|
retryStatus: {
|
||||||
'0': '重试中',
|
'0': '处理中',
|
||||||
'1': '重试完成',
|
'1': '处理成功',
|
||||||
'2': '最大次数'
|
'2': '最大次数'
|
||||||
|
},
|
||||||
|
taskType: {
|
||||||
|
'1': {
|
||||||
|
'name': '重试数据',
|
||||||
|
'color': '#d06892'
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
'name': '回调数据',
|
||||||
|
'color': '#f5a22d'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -84,6 +84,16 @@
|
|||||||
<span slot="serial" slot-scope="text, record">
|
<span slot="serial" slot-scope="text, record">
|
||||||
{{ record.id }}
|
{{ record.id }}
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="taskType" slot-scope="text">
|
||||||
|
<a-tag :color="taskType[text].color">
|
||||||
|
{{ taskType[text].name }}
|
||||||
|
</a-tag>
|
||||||
|
</span>
|
||||||
|
<span slot="retryStatus" slot-scope="text">
|
||||||
|
<a-tag :color="retryStatus[text].color">
|
||||||
|
{{ retryStatus[text].name }}
|
||||||
|
</a-tag>
|
||||||
|
</span>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<template>
|
<template>
|
||||||
<a @click="handleInfo(record)">详情</a>
|
<a @click="handleInfo(record)">详情</a>
|
||||||
@ -131,10 +141,32 @@ export default {
|
|||||||
// 查询参数
|
// 查询参数
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
retryStatus: {
|
retryStatus: {
|
||||||
0: '重试中',
|
'0': {
|
||||||
1: '重试完成',
|
'name': '处理中',
|
||||||
2: '最大次数',
|
'color': '#9c1f1f'
|
||||||
3: '暂停'
|
},
|
||||||
|
'1': {
|
||||||
|
'name': '处理成功',
|
||||||
|
'color': '#f5a22d'
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
'name': '最大次数',
|
||||||
|
'color': '#68a5d0'
|
||||||
|
},
|
||||||
|
'3': {
|
||||||
|
'name': '暂停',
|
||||||
|
'color': '#f52d8e'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
taskType: {
|
||||||
|
'1': {
|
||||||
|
'name': '重试数据',
|
||||||
|
'color': '#d06892'
|
||||||
|
},
|
||||||
|
'2': {
|
||||||
|
'name': '回调数据',
|
||||||
|
'color': '#f5a22d'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
@ -184,7 +216,13 @@ export default {
|
|||||||
{
|
{
|
||||||
title: '重试状态',
|
title: '重试状态',
|
||||||
dataIndex: 'retryStatus',
|
dataIndex: 'retryStatus',
|
||||||
customRender: (text) => this.retryStatus[text],
|
scopedSlots: { customRender: 'retryStatus' },
|
||||||
|
width: '5%'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '任务类型',
|
||||||
|
dataIndex: 'taskType',
|
||||||
|
scopedSlots: { customRender: 'taskType' },
|
||||||
width: '5%'
|
width: '5%'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user