timeout

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Module provides the timeout scanner and cron job registration.
	Module = fx.Module(
		"vef:approval:timeout",

		fx.Provide(NewScanner),
		fx.Invoke(registerTimeoutJobs),
	)
)

Functions

This section is empty.

Types

type Scanner

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

Scanner scans for timed-out tasks and processes them.

func NewScanner

func NewScanner(
	db orm.DB,
	publisher *dispatcher.EventPublisher,
	taskSvc *service.TaskService,
	nodeSvc *service.NodeService,
	userResolver approval.UserInfoResolver,
) *Scanner

NewScanner creates a new timeout scanner.

func (*Scanner) ScanPreWarnings

func (s *Scanner) ScanPreWarnings(ctx context.Context)

ScanPreWarnings finds tasks approaching their deadline and sends warning notifications.

func (*Scanner) ScanTimeouts

func (s *Scanner) ScanTimeouts(ctx context.Context)

ScanTimeouts finds tasks that have passed their deadline and processes them.

Jump to

Keyboard shortcuts

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