|
@@ -20,7 +20,6 @@ import com.fdkk.sxz.other.mq.TopicRabbitConfig;
|
|
import com.fdkk.sxz.util.*;
|
|
import com.fdkk.sxz.util.*;
|
|
import com.fdkk.sxz.webApi.service.*;
|
|
import com.fdkk.sxz.webApi.service.*;
|
|
import com.fdkk.sxz.webApi.service.custom.ICustomComponentService;
|
|
import com.fdkk.sxz.webApi.service.custom.ICustomComponentService;
|
|
-import com.github.houbb.sisyphus.core.core.Retryer;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.slf4j.MDC;
|
|
import org.slf4j.MDC;
|
|
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
|
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
|
@@ -33,7 +32,6 @@ import org.springframework.util.CollectionUtils;
|
|
import java.io.File;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
-import java.util.concurrent.Callable;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* Created by Hb_zzZ on 2020/7/3.
|
|
* Created by Hb_zzZ on 2020/7/3.
|
|
@@ -842,13 +840,7 @@ public class RunBuild {
|
|
timer.start();
|
|
timer.start();
|
|
String maxUrl = maxObjUrl + "maxToDatasmith?uuid=" + fileId + "&max=" + maxName + "&flag=" + flag;
|
|
String maxUrl = maxObjUrl + "maxToDatasmith?uuid=" + fileId + "&max=" + maxName + "&flag=" + flag;
|
|
RunBuild.log.info("请求maxToDataSmith地址-{}", maxUrl);
|
|
RunBuild.log.info("请求maxToDataSmith地址-{}", maxUrl);
|
|
- Retryer.<String>newInstance()
|
|
|
|
- .callable(new Callable<String>() {
|
|
|
|
- @Override
|
|
|
|
- public String call() throws Exception {
|
|
|
|
- return OkHttpUtils.httpGet(maxUrl);
|
|
|
|
- }
|
|
|
|
- }).retryCall();
|
|
|
|
|
|
+ OkHttpUtils.httpGet(maxUrl);
|
|
RunBuild.log.info("运行maxToDataSmith结束-{}", fileId);
|
|
RunBuild.log.info("运行maxToDataSmith结束-{}", fileId);
|
|
modelHandelStep.setUseTime(String.valueOf(timer.intervalMs()));
|
|
modelHandelStep.setUseTime(String.valueOf(timer.intervalMs()));
|
|
modelHandelStepService.updateById(modelHandelStep);
|
|
modelHandelStepService.updateById(modelHandelStep);
|