Documentation
¶
Overview ¶
Package scheduler runs the platform's durable background work: firing wake schedules (§9.3), returning expired delivery leases to the queue, recording interrupted connector attempts as unknown, and refreshing the operational gauges (§14).
Index ¶
Constants ¶
View Source
const MinInterval = time.Minute
MinInterval is the shortest recurring wake interval.
View Source
const StaleOperation = 15 * time.Minute
StaleOperation is how long an operation may stay pending before its attempt is presumed interrupted.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store interface {
FireDue(ctx context.Context, now time.Time, limit int, next store.NextFunc) (int, error)
RequeueExpired(ctx context.Context) (int, error)
ExpireStaleOperations(ctx context.Context, olderThan time.Duration) (int64, error)
Gauges(ctx context.Context) (*store.Gauges, error)
}
Store is the persistence the loop needs.
Click to show internal directories.
Click to hide internal directories.