|
|
|
|
@ -16,6 +16,7 @@ import org.springframework.batch.core.step.builder.StepBuilder;
|
|
|
|
|
import org.springframework.batch.item.ItemProcessor;
|
|
|
|
|
import org.springframework.batch.item.ItemReader;
|
|
|
|
|
import org.springframework.batch.item.ItemWriter;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.cache.Cache;
|
|
|
|
|
import org.springframework.cache.CacheManager;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
@ -41,6 +42,9 @@ public class KubeflowRunBatchConfig {
|
|
|
|
|
private final KubeflowRunRepository kubeflowRunRepository;
|
|
|
|
|
private final CacheManager cacheManager;
|
|
|
|
|
|
|
|
|
|
@Value("${kubeflow.url:http://localhost:8080}")
|
|
|
|
|
private String kubeflowUrl;
|
|
|
|
|
|
|
|
|
|
private static final int PAGE_SIZE = 50;
|
|
|
|
|
private static final String SORT_BY = "created_at DESC";
|
|
|
|
|
|
|
|
|
|
@ -50,7 +54,7 @@ public class KubeflowRunBatchConfig {
|
|
|
|
|
.responseTimeout(Duration.ofSeconds(30)); // 응답 제한
|
|
|
|
|
|
|
|
|
|
return WebClient.builder()
|
|
|
|
|
.baseUrl("http://192.168.10.135:32473")
|
|
|
|
|
.baseUrl(kubeflowUrl)
|
|
|
|
|
.clientConnector(new ReactorClientHttpConnector(httpClient))
|
|
|
|
|
.exchangeStrategies(ExchangeStrategies.builder()
|
|
|
|
|
.codecs(configurer -> configurer.defaultCodecs()
|
|
|
|
|
|