This commit is contained in:
@@ -23,10 +23,11 @@ func NewNotificationCleanupHandler(service *notificationinfra.CleanupService, lo
|
||||
}
|
||||
|
||||
// Handle 执行有界、可重入的通知分批清理。
|
||||
func (h *NotificationCleanupHandler) Handle(ctx context.Context, _ *asynq.Task) error {
|
||||
func (h *NotificationCleanupHandler) Handle(ctx context.Context, task *asynq.Task) error {
|
||||
ctx = auditcontext.With(ctx, auditcontext.Context{
|
||||
ActorKind: constants.AuditActorSystemTask, ActorID: constants.TaskTypeNotificationCleanup,
|
||||
ActorName: "站内通知清理任务", Source: constants.AuditSourceWorker,
|
||||
CorrelationID: task.ResultWriter().TaskID(),
|
||||
})
|
||||
h.logger.Info("开始执行站内通知保留清理")
|
||||
if err := h.service.Run(ctx); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user