Skip to content

Commit

Permalink
⚡add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
stelin committed Oct 23, 2023
1 parent 9ffd5e8 commit 6303061
Show file tree
Hide file tree
Showing 8 changed files with 233 additions and 184 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package io.openjob.server.openapi.request;

import io.openjob.common.constant.FailStatusEnum;
import lombok.Data;

import java.util.List;

/**
* @author stelin [email protected]
* @since 1.0.8
*/
@Data
public class DelayInstanceStatusRequest {

private List<DelayInstanceTaskRequest> list;

@Data
public static class DelayInstanceTaskRequest {
/**
* Topic
*/
private String topic;

/**
* Delay id.
*/
private Long delayId;

/**
* Delay pid
*/
private Long delayPid;

/**
* Task id.
*/
private String taskId;

/**
* Task status.
*/
private Integer status;

/**
* Fail status
*
* @see FailStatusEnum#getStatus()
*/
private Integer failStatus;

/**
* Task result.
*/
private String result;

/**
* Worker address
*/
private String workerAddress;

/**
* Complete time
*/
private Long completeTime;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.openjob.server.openapi.request;

import lombok.Data;

import java.util.List;

/**
* @author stelin [email protected]
* @since 1.0.8
*/
@Data
public class DelayPullInstanceRequest {
private String workerAddress;
private List<DelayPullTopicItemRequest> list;

@Data
public static class DelayPullTopicItemRequest {
private String topic;
private Integer size;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.openjob.server.openapi.request;

import lombok.Data;

/**
* @author stelin [email protected]
* @since 1.0.8
*/
@Data
public class DelayPullTopicRequest {
private String appName;
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.openjob.server.openapi.vo;

/**
* @author stelin [email protected]
* @since 1.0.8
*/
public class DelayInstanceStatusVO {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package io.openjob.server.openapi.vo;

import lombok.Data;

import java.util.List;

/**
* @author stelin [email protected]
* @since 1.0.8
*/
@Data
public class DelayPullInstanceVO {
private List<DelayPullInstanceItemVO> list;

@Data
public static class DelayPullInstanceItemVO {
private String topic;
private String taskId;
private Long delayId;
private Long delayPid;
private String delayParams;
private String delayExtra;
private String processorInfo;
private Integer failRetryTimes;
private Integer failRetryInterval;
private Integer executeTimeout;
private Integer blockingSize;
private Integer concurrency;
private Integer failTopicEnable;
private Integer failTopicConcurrency;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package io.openjob.server.openapi.vo;

import lombok.Data;

import java.util.List;

/**
* @author stelin [email protected]
* @since 1.0.8
*/
@Data
public class DelayPullTopicVO {
private List<DelayTopicVO> topicList;

@Data
public static class DelayTopicVO {
private Long id;
private Long pid;
private String topic;
private String processorInfo;
private Integer failRetryTimes;
private Integer failRetryInterval;
private Integer executeTimeout;
private Integer concurrency;
private Integer failTopicEnable;
private Integer failTopicConcurrency;
}
}
Loading

0 comments on commit 6303061

Please sign in to comment.