Skip to content

Commit 397acad

Browse files
authored
Merge pull request #209 from Travlocks/refactor/#206-summary
[refactor] #206 프롬프트에 생성 기준 추가
2 parents e233e80 + 6359eb1 commit 397acad

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main/java/org/umc/travlocksserver/infra/ai/util/AiPromptProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class AiPromptProvider {
4646
4747
[AI 자유 태그(free)]
4848
- 생성 개수: 정확히 2개 (초과/미만 불가)
49+
- 생성 기준: 입력으로 들어오는 정보들을 토대로 관련된 태그를 생성
4950
- 형식: 2~8글자, 명사 또는 짧은 형용사 (띄어쓰기없이)
5051
- 금지:
5152
1) 주관적/개인적 표현

src/main/java/org/umc/travlocksserver/infra/scheduler/TemplateTagScheduler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import lombok.RequiredArgsConstructor;
44
import lombok.extern.slf4j.Slf4j;
55
import org.springframework.beans.factory.annotation.Value;
6+
import org.springframework.scheduling.annotation.Scheduled;
67
import org.springframework.stereotype.Component;
78
import org.umc.travlocksserver.domain.template.repository.TemplateRepository;
89
import org.umc.travlocksserver.domain.template.service.command.TemplateTagCommandService;
@@ -29,7 +30,7 @@ public class TemplateTagScheduler {
2930
private final TemplateRepository templateRepository;
3031
private final TemplateTagCommandService templateTagCommandService;
3132

32-
// @Scheduled(cron = "${tag.cron}", zone = "${tag.zone}")
33+
@Scheduled(cron = "${tag.cron}", zone = "${tag.zone}")
3334
public void run() {
3435
LocalDateTime now = LocalDateTime.now(ZoneId.of(zoneId));
3536
LocalDateTime to = now.minusMinutes(graceMinutes);

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ suggestion:
8686
max-duplicate-category: 2
8787

8888
tag:
89-
cron: "0 28 * * * *"
89+
cron: "0 0 * * * *"
9090
grace-minutes: 15
9191
lookback-minutes: 75
9292

0 commit comments

Comments
 (0)