Skip to content

Commit d650e39

Browse files
authored
Merge pull request #357 from prgrms-web-devcourse-final-project/develop
배포
2 parents d6177ff + 4ff56d1 commit d650e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/main/java/com/ai/lawyer/domain/chatbot/service/AsyncPostChatProcessingService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.springframework.ai.chat.messages.MessageType;
1818
import org.springframework.ai.document.Document;
1919
import org.springframework.beans.factory.annotation.Value;
20+
import org.springframework.scheduling.annotation.Async;
2021
import org.springframework.stereotype.Service;
2122
import org.springframework.transaction.annotation.Transactional;
2223

@@ -46,7 +47,7 @@ public class AsyncPostChatProcessingService {
4647
@Value("{$custom.ai.keyword-extraction}")
4748
private String keywordExtraction;
4849

49-
//@Async
50+
@Async
5051
@Transactional
5152
public void processHandlerTasks(Long historyId, String userMessage, String fullResponse, List<Document> similarCaseDocuments, List<Document> similarLawDocuments) {
5253
try {

0 commit comments

Comments
 (0)