package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/maintenance" ) templ MaintenanceConfig(data *maintenance.MaintenanceConfigData) {

Maintenance Configuration

System Settings
When enabled, the system will automatically scan for and execute maintenance tasks.
How often to scan for maintenance tasks (1-1440 minutes).
How long to wait for worker heartbeat before considering it inactive (1-60 minutes).
Maximum time allowed for a single task to complete (1-24 hours).
Maximum number of maintenance tasks that can run simultaneously across all workers (1-20).
Default number of times to retry failed tasks (0-10).
Time to wait before retrying failed tasks (1-120 minutes).
How long to keep completed/failed task records (1-30 days).
Task Configuration

Configure specific settings for each maintenance task type.

System Statistics
Last Scan

{data.LastScanTime.Format("2006-01-02 15:04:05")}

Next Scan

{data.NextScanTime.Format("2006-01-02 15:04:05")}

Total Tasks

{fmt.Sprintf("%d", data.SystemStats.TotalTasks)}

Active Workers

{fmt.Sprintf("%d", data.SystemStats.ActiveWorkers)}

}