Documentation
¶
Overview ¶
Package housekeeping provides automated maintenance tasks for the Lunar system.
The scheduler runs hourly to delete old execution logs based on function retention settings. Functions can specify retention periods of 7, 15, 30, or 365 days (default is 7 days).
Usage:
scheduler := housekeeping.NewScheduler(db) scheduler.Start() defer scheduler.Stop()
Index ¶
Constants ¶
View Source
const (
// DefaultRetentionDays is the default retention period when not specified
DefaultRetentionDays = 7
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler manages periodic cleanup of old executions
func NewScheduler ¶
NewScheduler creates a new housekeeping scheduler
Click to show internal directories.
Click to hide internal directories.