提交 f32b1eb2 编写于 作者: W Wenjun Ruan

Set async check miniest interval to 1s

上级 952ea754
......@@ -42,7 +42,8 @@ public class AsyncTaskExecutionContext implements Delayed {
@Override
public long getDelay(TimeUnit unit) {
return unit.toSeconds(asyncTaskExecuteFunction.getTaskExecuteInterval().toMillis());
long intervalSeconds = Math.max(asyncTaskExecuteFunction.getTaskExecuteInterval().getSeconds(), 1);
return unit.convert(intervalSeconds, TimeUnit.SECONDS);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册