feat(tasks): implement atomic claims and leases

This commit is contained in:
QiuSW
2026-07-26 16:16:36 +08:00
parent 49db5b8305
commit ce875af889
50 changed files with 7589 additions and 207 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ func (s *TaskService) Cancel(
Message: "task canceled",
OccurredAt: now,
}
task, err := s.repository.CancelPendingTask(
task, err := s.repository.CancelTask(
ctx,
command.CreatorSubject,
command.TaskID,