Commit 35dda7b5 by guo_minglei@163.com

设置默认重试次数为0

parent 9c5b5ea1
......@@ -280,7 +280,9 @@ public class ApiFlowServiceImpl implements ApiFlowService {
//设置失败重试
if (null != ((PluginNode)pluginNode).getConfig().getFailedRetryCount()){
node.setFailedRetryCount(((PluginNode)pluginNode).getConfig().getFailedRetryCount());
node.setFailedRetryInterval(((PluginNode)pluginNode).getConfig().getFailedRetryInterval());
node.setFailedRetryInterval(null == ((PluginNode)pluginNode).getConfig().getFailedRetryInterval() ? 3000 : ((PluginNode)pluginNode).getConfig().getFailedRetryInterval());
}else {
node.setFailedRetryCount(0);
}
//设置剩余执行次数
if (null != ((PluginNode)pluginNode).getConfig().getRepeatCount() && !"-1".equals(((PluginNode)pluginNode).getConfig().getRepeatCount())){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment