Skip to content

Commit

Permalink
feat/#294 : @async 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Jun 6, 2024
1 parent 399bdf0 commit 532a97b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
Expand All @@ -25,6 +26,7 @@ public class UpdateWeightEventListener {
classes = UpdateWeightEvent.class,
phase = TransactionPhase.AFTER_COMMIT)
@Transactional(propagation = Propagation.REQUIRES_NEW)
@Async
public void handle(UpdateWeightEvent event) {
Long memberId = event.getMemberId();
String url = event.getUrl();
Expand Down

0 comments on commit 532a97b

Please sign in to comment.