Skip to content

Commit 0877478

Browse files
authored
fix(notification): can't send failSendingTimeoutMessages
1 parent 4c3ea39 commit 0877478

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/odc-service/src/main/java/com/oceanbase/odc/metadb/notification/MessageRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ List<MessageEntity> findNByStatusForUpdate(@Param("status") MessageSendingStatus
6363
@Query(value = "update notification_message set `status`='SENT_FAILED' where `status`='SENDING' and "
6464
+ "`update_time` < DATE_SUB(now(), INTERVAL :timeoutSeconds SECOND)",
6565
nativeQuery = true)
66+
@Modifying
67+
@Transactional
6668
int failSendingTimeoutMessages(@Param("timeoutSeconds") long timeoutSeconds);
6769

6870
default Page<MessageEntity> find(@NonNull QueryMessageParams queryParams, @NonNull Pageable pageable) {

0 commit comments

Comments
 (0)