diff --git a/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.bin b/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.bin index 8a69cfb..b92a5d6 100644 Binary files a/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.bin and b/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.bin differ diff --git a/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.lock b/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.lock index 8fbfa60..b5f07bb 100644 Binary files a/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.lock and b/gukyuin/label-send/.gradle/8.14/executionHistory/executionHistory.lock differ diff --git a/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.bin b/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.bin index bcf7929..b0092f3 100644 Binary files a/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.bin and b/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.bin differ diff --git a/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.lock b/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.lock index a50a7b8..f6a3390 100644 Binary files a/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.lock and b/gukyuin/label-send/.gradle/8.14/fileHashes/fileHashes.lock differ diff --git a/gukyuin/label-send/.gradle/8.14/fileHashes/resourceHashesCache.bin b/gukyuin/label-send/.gradle/8.14/fileHashes/resourceHashesCache.bin index 5234f72..3191493 100644 Binary files a/gukyuin/label-send/.gradle/8.14/fileHashes/resourceHashesCache.bin and b/gukyuin/label-send/.gradle/8.14/fileHashes/resourceHashesCache.bin differ diff --git a/gukyuin/label-send/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/gukyuin/label-send/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 92ea808..6ceb082 100644 Binary files a/gukyuin/label-send/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/gukyuin/label-send/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/gukyuin/label-send/.gradle/buildOutputCleanup/outputFiles.bin b/gukyuin/label-send/.gradle/buildOutputCleanup/outputFiles.bin index 89dc76c..44773e9 100644 Binary files a/gukyuin/label-send/.gradle/buildOutputCleanup/outputFiles.bin and b/gukyuin/label-send/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/gukyuin/label-send/.gradle/file-system.probe b/gukyuin/label-send/.gradle/file-system.probe index b7f3bc5..24a7502 100644 Binary files a/gukyuin/label-send/.gradle/file-system.probe and b/gukyuin/label-send/.gradle/file-system.probe differ diff --git a/gukyuin/label-send/build/classes/java/main/com/kamco/cd/kamcoback/service/LabelSendRunner.class b/gukyuin/label-send/build/classes/java/main/com/kamco/cd/kamcoback/service/LabelSendRunner.class new file mode 100644 index 0000000..b310336 Binary files /dev/null and b/gukyuin/label-send/build/classes/java/main/com/kamco/cd/kamcoback/service/LabelSendRunner.class differ diff --git a/gukyuin/label-send/build/libs/label-send.jar b/gukyuin/label-send/build/libs/label-send.jar index 23f4b97..84a2dd2 100644 Binary files a/gukyuin/label-send/build/libs/label-send.jar and b/gukyuin/label-send/build/libs/label-send.jar differ diff --git a/gukyuin/label-send/build/reports/problems/problems-report.html b/gukyuin/label-send/build/reports/problems/problems-report.html index 1305c53..c67bd41 100644 --- a/gukyuin/label-send/build/reports/problems/problems-report.html +++ b/gukyuin/label-send/build/reports/problems/problems-report.html @@ -650,7 +650,7 @@ code + .copy-button { diff --git a/gukyuin/label-send/build/resources/main/application-prod.yml b/gukyuin/label-send/build/resources/main/application-prod.yml index 471febd..1d17099 100644 --- a/gukyuin/label-send/build/resources/main/application-prod.yml +++ b/gukyuin/label-send/build/resources/main/application-prod.yml @@ -84,28 +84,28 @@ mapsheet: baseurl: /app/detect/result #현재사용안함 file: - sync-root-dir: /kamco-nfs/images/ - sync-tmp-dir: /kamco-nfs/repo/tmp # image upload temp dir + sync-root-dir: /data/images/ + sync-tmp-dir: /data/repo/tmp # image upload temp dir sync-file-extention: tfw,tif - #dataset-dir: D:/kamco-nfs/model_output/ #변경 model_output - dataset-dir: /kamco-nfs/model_output/export/ # 마운트경로 AI 추론결과 + #dataset-dir: D:/data/model_output/ #변경 model_output + dataset-dir: /data/model_output/export/ # 마운트경로 AI 추론결과 dataset-tmp-dir: ${file.dataset-dir}tmp/ - #model-dir: D:/kamco-nfs/ckpt/model/ - model-dir: /kamco-nfs/ckpt/model/ # 학습서버에서 트레이닝한 모델업로드경로 + #model-dir: D:/data/ckpt/model/ + model-dir: /data/ckpt/model/ # 학습서버에서 트레이닝한 모델업로드경로 model-tmp-dir: ${file.model-dir}tmp/ model-file-extention: pth,json,py - pt-path: /kamco-nfs/ckpt/v6-cls-checkpoints/ + pt-path: /data/ckpt/v6-cls-checkpoints/ pt-FileName: yolov8_6th-6m.pt - dataset-response: /kamco-nfs/dataset/response/ + dataset-response: /data/dataset/response/ inference: url: http://127.0.0.1:8000/jobs batch-url: http://127.0.0.1:8000/batches - geojson-dir: /kamco-nfs/requests/ # 학습서버에서 트레이닝한 모델업로드경로 - jar-path: /kamco-nfs/repo/jar/shp-exporter.jar # 추론실행을 위한 파일생성경로 + geojson-dir: /data/requests/ # 학습서버에서 트레이닝한 모델업로드경로 + jar-path: /data/repo/jar/shp-exporter.jar # 추론실행을 위한 파일생성경로 inference-server-name: server1,server2,server3,server4 gukyuin: @@ -113,7 +113,7 @@ gukyuin: cdi: ${gukyuin.url}/api/kcd/cdi training-data: - geojson-dir: /kamco-nfs/dataset/request/ + geojson-dir: /data/dataset/request/ layer: geoserver-url: https://kamco.geo-dev.gs.dabeeo.com diff --git a/gukyuin/label-send/build/tmp/compileJava/previous-compilation-data.bin b/gukyuin/label-send/build/tmp/compileJava/previous-compilation-data.bin index e1d91a1..2b1d9e7 100644 Binary files a/gukyuin/label-send/build/tmp/compileJava/previous-compilation-data.bin and b/gukyuin/label-send/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/gukyuin/label-send/src/main/java/com/kamco/cd/kamcoback/service/LabelSendRunner.java b/gukyuin/label-send/src/main/java/com/kamco/cd/kamcoback/service/LabelSendRunner.java new file mode 100644 index 0000000..cac1677 --- /dev/null +++ b/gukyuin/label-send/src/main/java/com/kamco/cd/kamcoback/service/LabelSendRunner.java @@ -0,0 +1,25 @@ +package com.kamco.cd.kamcoback.service; + +import java.time.LocalDate; +import lombok.RequiredArgsConstructor; +import org.springframework.boot.CommandLineRunner; +import org.springframework.stereotype.Component; + +@Component +@RequiredArgsConstructor +public class LabelSendRunner implements CommandLineRunner { + + private final GukYuinApiLabelJobService jobService; + + @Override + public void run(String... args) { + LocalDate baseDate = null; + + for (String arg : args) { + if (arg.startsWith("baseDate=")) { + baseDate = LocalDate.parse(arg.split("=")[1]); + } + } + jobService.findLabelingCompleteSend(baseDate); + } +} diff --git a/gukyuin/label-send/src/main/resources/application-prod.yml b/gukyuin/label-send/src/main/resources/application-prod.yml index 471febd..1d17099 100644 --- a/gukyuin/label-send/src/main/resources/application-prod.yml +++ b/gukyuin/label-send/src/main/resources/application-prod.yml @@ -84,28 +84,28 @@ mapsheet: baseurl: /app/detect/result #현재사용안함 file: - sync-root-dir: /kamco-nfs/images/ - sync-tmp-dir: /kamco-nfs/repo/tmp # image upload temp dir + sync-root-dir: /data/images/ + sync-tmp-dir: /data/repo/tmp # image upload temp dir sync-file-extention: tfw,tif - #dataset-dir: D:/kamco-nfs/model_output/ #변경 model_output - dataset-dir: /kamco-nfs/model_output/export/ # 마운트경로 AI 추론결과 + #dataset-dir: D:/data/model_output/ #변경 model_output + dataset-dir: /data/model_output/export/ # 마운트경로 AI 추론결과 dataset-tmp-dir: ${file.dataset-dir}tmp/ - #model-dir: D:/kamco-nfs/ckpt/model/ - model-dir: /kamco-nfs/ckpt/model/ # 학습서버에서 트레이닝한 모델업로드경로 + #model-dir: D:/data/ckpt/model/ + model-dir: /data/ckpt/model/ # 학습서버에서 트레이닝한 모델업로드경로 model-tmp-dir: ${file.model-dir}tmp/ model-file-extention: pth,json,py - pt-path: /kamco-nfs/ckpt/v6-cls-checkpoints/ + pt-path: /data/ckpt/v6-cls-checkpoints/ pt-FileName: yolov8_6th-6m.pt - dataset-response: /kamco-nfs/dataset/response/ + dataset-response: /data/dataset/response/ inference: url: http://127.0.0.1:8000/jobs batch-url: http://127.0.0.1:8000/batches - geojson-dir: /kamco-nfs/requests/ # 학습서버에서 트레이닝한 모델업로드경로 - jar-path: /kamco-nfs/repo/jar/shp-exporter.jar # 추론실행을 위한 파일생성경로 + geojson-dir: /data/requests/ # 학습서버에서 트레이닝한 모델업로드경로 + jar-path: /data/repo/jar/shp-exporter.jar # 추론실행을 위한 파일생성경로 inference-server-name: server1,server2,server3,server4 gukyuin: @@ -113,7 +113,7 @@ gukyuin: cdi: ${gukyuin.url}/api/kcd/cdi training-data: - geojson-dir: /kamco-nfs/dataset/request/ + geojson-dir: /data/dataset/request/ layer: geoserver-url: https://kamco.geo-dev.gs.dabeeo.com