Versions in this module Expand all Collapse all v0 v0.1.1 Oct 25, 2026 v0.1.0 Oct 21, 2026 Changes in this version + var ErrNoWorker = job.ErrNoWorker + type Attempt struct + Row *job.Row + func AttemptFromContext(ctx context.Context) *Attempt + func (a *Attempt) CompletedInTx() bool + func (a *Attempt) MarkCompletedInTx() + type Config struct + Clock clock.Clock + DefaultRetry RetryFunc + DefaultTimeout time.Duration + HandleError func(ctx context.Context, row *job.Row, err error) *job.Override + HandlePanic func(ctx context.Context, row *job.Row, value any, trace string) *job.Override + Logger *slog.Logger + Lookup func(kind string) (Handler, bool) + Observe func(row *job.Row, outcome string, d time.Duration) + type Executor struct + func New(cfg Config) (*Executor, error) + func (e *Executor) Execute(ctx context.Context, row *job.Row) (c job.Completion, skip bool) + type Handler struct + Retry RetryFunc + Timeout time.Duration + Work WorkFunc + type RetryFunc func(row *job.Row, now time.Time) time.Time + type WorkFunc func(ctx context.Context, row *job.Row) error