Documentation
¶
Overview ¶
Package jobs runs durable SQLite jobs with bounded leases and retry backoff.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PermanentError ¶
type PermanentError struct{ Err error }
PermanentError prevents a retry for invalid or unrecoverable work.
func (*PermanentError) Error ¶
func (e *PermanentError) Error() string
func (*PermanentError) Unwrap ¶
func (e *PermanentError) Unwrap() error
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner owns a fixed-size worker pool.
func New ¶
func New(repo *repository.Repository, handlers map[string]Handler, workers int, poll, lease time.Duration, logger *slog.Logger) *Runner
New creates a durable worker runner.
Click to show internal directories.
Click to hide internal directories.