package app import ( "fmt" "time" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" ) templ MaintenanceQueue(data *maintenance.MaintenanceQueueData) {
Pending Tasks
Running Tasks
Completed Today
Failed Today
No pending maintenance tasks
Pending tasks will appear here when the system detects maintenance needsType | Priority | Volume | Server | Reason | Created |
---|---|---|---|---|---|
@TaskTypeIcon(task.Type) {string(task.Type)} | @PriorityBadge(task.Priority) | {fmt.Sprintf("%d", task.VolumeID)} | {task.Server} | {task.Reason} | {task.CreatedAt.Format("2006-01-02 15:04")} |
No active maintenance tasks
Active tasks will appear here when workers start processing themType | Status | Progress | Volume | Worker | Started |
---|---|---|---|---|---|
@TaskTypeIcon(task.Type) {string(task.Type)} | @StatusBadge(task.Status) | @ProgressBar(task.Progress, task.Status) | {fmt.Sprintf("%d", task.VolumeID)} | if task.WorkerID != "" { {task.WorkerID} } else { - } | if task.StartedAt != nil { {task.StartedAt.Format("2006-01-02 15:04")} } else { - } |
No completed maintenance tasks today
Completed tasks will appear here after workers finish processing themType | Status | Volume | Worker | Duration | Completed |
---|---|---|---|---|---|
@TaskTypeIcon(task.Type) {string(task.Type)} | @StatusBadge(task.Status) | {fmt.Sprintf("%d", task.VolumeID)} | if task.WorkerID != "" { {task.WorkerID} } else { - } | if task.StartedAt != nil && task.CompletedAt != nil { {formatDuration(task.CompletedAt.Sub(*task.StartedAt))} } else { - } | if task.CompletedAt != nil { {task.CompletedAt.Format("2006-01-02 15:04")} } else { - } |
@TaskTypeIcon(task.Type) {string(task.Type)} | @StatusBadge(task.Status) | {fmt.Sprintf("%d", task.VolumeID)} | if task.WorkerID != "" { {task.WorkerID} } else { - } | if task.StartedAt != nil && task.CompletedAt != nil { {formatDuration(task.CompletedAt.Sub(*task.StartedAt))} } else { - } | if task.CompletedAt != nil { {task.CompletedAt.Format("2006-01-02 15:04")} } else { - } |