refactor code and improve daily cache handling of deleted VMs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-20 16:46:07 +11:00
parent 0517ef88c3
commit 7ea02be91a
7 changed files with 131 additions and 122 deletions

View File

@@ -1,17 +1,3 @@
package tasks
import (
"log/slog"
"vctp/db"
"vctp/internal/settings"
"vctp/internal/vcenter"
)
// CronTask stores runtime information to be used by tasks
type CronTask struct {
Logger *slog.Logger
Database db.Database
Settings *settings.Settings
VcCreds *vcenter.VcenterLogin
FirstHourlySnapshotCheck bool
}
// Legacy placeholder: type definitions moved to types.go.