update - 重复提交的 Value 修改为 TraceId
This commit is contained in:
parent
7bb157c0b6
commit
136297e9e1
@ -1,6 +1,7 @@
|
||||
package cn.axzo.workflow.server.common.aspectj;
|
||||
|
||||
import cn.axzo.workflow.core.common.exception.WorkflowEngineException;
|
||||
import cn.axzo.workflow.core.common.utils.TraceUtil;
|
||||
import cn.axzo.workflow.server.common.annotation.RepeatSubmit;
|
||||
import cn.axzo.workflow.server.common.config.RepeatSubmitResolver;
|
||||
import cn.axzo.workflow.server.common.util.RedisUtils;
|
||||
@ -81,7 +82,7 @@ public class RepeatSubmitAspect implements Ordered {
|
||||
|
||||
String key = RedisUtils.getCacheObject(cacheRepeatKey);
|
||||
if (key == null) {
|
||||
RedisUtils.setCacheObject(cacheRepeatKey, "", Duration.ofMillis(interval));
|
||||
RedisUtils.setCacheObject(cacheRepeatKey, TraceUtil.traceId(), Duration.ofMillis(interval));
|
||||
KEY_CACHE.set(cacheRepeatKey);
|
||||
} else {
|
||||
log.warn("{}", repeatSubmit.message());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user