worker

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Module wires the invocation log pruner into the fx graph and registers
	// its cron job when a retention window is configured.
	Module = fx.Module(
		"vef:integration:worker",

		fx.Provide(NewLogPruner),
		fx.Invoke(registerJobs),
	)
)

Functions

This section is empty.

Types

type LogPruner

type LogPruner struct {
	// contains filtered or unexported fields
}

LogPruner deletes invocation log rows older than the configured retention window. Deletion by cutoff is idempotent, so concurrent runs across replicas are harmless and no distributed lock is needed.

func NewLogPruner

func NewLogPruner(db orm.DB, cfg *config.IntegrationConfig) *LogPruner

NewLogPruner builds the pruner from the configured retention.

func (*LogPruner) Run

func (p *LogPruner) Run(ctx context.Context)

Run performs one sweep; failures are logged, never propagated to the scheduler.

Jump to

Keyboard shortcuts

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