workers

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetentionWorker

type RetentionWorker struct {
	Repo *pgrepo.Repo

	Every time.Duration

	ArchivedTTL time.Duration
	ReadTTL     time.Duration

	Batch int
}

RetentionWorker prunes aged notifications (F8-4, orkome): webhooks had a delivery sweeper from day one, notifications had none — the table grows unboundedly. Default retention: archived rows live 30 days, read rows 90, unread rows are never touched (they are still the user's pending signal).

func (*RetentionWorker) Name

func (w *RetentionWorker) Name() string

func (*RetentionWorker) Run

func (w *RetentionWorker) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL