Documentation
¶
Overview ¶
Package scheduler runs the platform's durable background work: running due automations (§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 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 ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
FireDue(ctx context.Context, now time.Time, limit int) (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.