fix: panic

This commit is contained in:
mrkaye97
2025-10-10 15:25:41 -04:00
parent 36f425f3c1
commit c0adccf2ea

View File

@@ -792,11 +792,12 @@ func (tc *TasksControllerImpl) handleCancelTasks(ctx context.Context, tenantId s
for _, msg := range msgs {
for _, task := range msg.Tasks {
pubPayloads = append(pubPayloads, tasktypes.CancelledTaskPayload{
TaskId: task.Id,
InsertedAt: task.InsertedAt,
RetryCount: task.RetryCount,
EventType: sqlcv1.V1EventTypeOlapCANCELLED,
ShouldNotify: true,
TaskId: task.Id,
InsertedAt: task.InsertedAt,
RetryCount: task.RetryCount,
EventType: sqlcv1.V1EventTypeOlapCANCELLED,
ShouldNotify: true,
EventExternalId: uuid.NewString(),
})
}
}