Documentation
¶
Overview ¶
Package postgres stores scheduler run records in Postgres.
Use it with the stable scheduler package when applications need durable run history, restart suppression, and operational visibility backed by a Postgres database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunsRepo ¶
type RunsRepo struct {
Pool ports.DatabasePool
}
RunsRepo stores scheduler job executions.
func NewRunsRepo ¶
func NewRunsRepo(pool ports.DatabasePool) *RunsRepo
NewRunsRepo creates a runs repository backed by Postgres.
func (*RunsRepo) LastFinished ¶
LastFinished returns the most recent finished timestamp for a job.
Click to show internal directories.
Click to hide internal directories.