Skip to content

Commit cb70526

Browse files
committed
[FIX] 진행중인 배치작업이 0개이면 로깅하지 않음
1 parent 6f73653 commit cb70526

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/nova/nova_server/domain/batch/cardnews/scheduler/BatchPollingScheduler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public class BatchPollingScheduler {
2121
@Scheduled(fixedDelay = 1000 * 10)
2222
public void pollBatch() {
2323
List<AiBatchEntity> batchEntities = aiBatchRepository.findAllByState(AiBatchState.PROGRESS);
24+
if (batchEntities.isEmpty()) {
25+
return;
26+
}
27+
2428
log.info("진행중인 배치 작업 {} 개 발견", batchEntities.size());
2529

2630
for (AiBatchEntity entity : batchEntities) {

0 commit comments

Comments
 (0)