feat: 切换定时任务至分布式调度底座
- 以执行账本和有界 Worker 承载重负载任务与故障接管 - 接入统一调度 Starter 并增加 MySQL 迁移、指标和回归测试
This commit is contained in:
@@ -5,9 +5,12 @@ import tech.easyflow.common.annotation.DictDef;
|
||||
@DictDef(name = "任务执行结果", code = "jobResult", keyField = "code", labelField = "text")
|
||||
public enum EnumJobResult {
|
||||
|
||||
|
||||
SUCCESS(1,"成功"),
|
||||
FAIL(0,"失败"),
|
||||
PENDING(2,"等待执行"),
|
||||
RUNNING(3,"执行中"),
|
||||
DEAD(4,"需人工处理"),
|
||||
CANCELLED(5,"已取消"),
|
||||
;
|
||||
|
||||
private final int code;
|
||||
|
||||
@@ -5,10 +5,8 @@ import tech.easyflow.common.annotation.DictDef;
|
||||
@DictDef(name = "错过策略", code = "misfirePolicy", keyField = "code", labelField = "text")
|
||||
public enum EnumMisfirePolicy {
|
||||
|
||||
DEFAULT(0,"默认"),
|
||||
MISFIRE_IGNORE_MISFIRES(1,"立即触发"),
|
||||
MISFIRE_FIRE_AND_PROCEED(2,"立即触发一次"),
|
||||
MISFIRE_DO_NOTHING(3,"忽略");
|
||||
FIRE_ONCE_NOW(2,"恢复后补执行一次"),
|
||||
SKIP(3,"跳过本次");
|
||||
;
|
||||
|
||||
private final int code;
|
||||
|
||||
Reference in New Issue
Block a user