Versions in this module Expand all Collapse all v0 v0.2.0 Sep 9, 2026 v0.1.0 Sep 6, 2026 Changes in this version + const DefaultMaxAttempts + var ErrDuplicateID = errors.New("task: duplicate id") + var ErrInvalidTransition = errors.New("task: invalid status transition") + var ErrLeaseNotHeld = errors.New("task: lease not held") + var ErrNotFound = errors.New("task: not found") + func CanTransitionTo(from, to Status) bool + func Terminal(s Status) bool + type ID string + func NewID() ID + func (id ID) String() string + type New struct + DedupKey string + Deps []ID + MaxAttempts int + NotBefore time.Time + Payload json.RawMessage + Priority int + Project string + Type string + func (n New) Normalize() New + type Status string + const Cancelled + const Completed + const Dead + const Pending + const Running + func (s Status) Valid() bool + type Task struct + Attempts int + CompletedAt *time.Time + CreatedAt time.Time + Deps []ID + ID ID + LastError string + LeaseExpires *time.Time + LeaseOwner string + MaxAttempts int + NotBefore time.Time + Payload json.RawMessage + Priority int + Project string + Status Status + Type string + UpdatedAt time.Time Other modules containing this package github.com/larsartmann/go-taskqueue/internal/task