Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner periodically removes completed jobs older than the retention period.
type Config ¶
type Config struct {
Store *store.RedisStore
// RetentionPeriod is how long completed/failed/dead jobs are kept.
// Jobs older than this are deleted. Default: 7 days.
RetentionPeriod time.Duration
// ScanInterval is how often the cleaner runs. Default: 1 hour.
ScanInterval time.Duration
// BatchSize is the number of jobs to process per scan iteration. Default: 100.
BatchSize int
Logger chainedlog.Logger
}
Config configures the archival cleaner.
Click to show internal directories.
Click to hide internal directories.