reaper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reaper

type Reaper struct {
	Reclaim   time.Duration
	Runners   core.RunnerStore
	Runnerz   core.RunnerService
	Scheduler core.Scheduler
}

The reaper monitors and terminates zombie runners that remain stuck in a pending state for an excessive duration. This prevents resource leaks and ensures the system can recover from failed runner initialization attempts.

func New

func New(
	runners core.RunnerStore,
	runnerz core.RunnerService,
	scheduler core.Scheduler,
	reclaim time.Duration) *Reaper

New returns a new Reaper.

func (*Reaper) Start

func (r *Reaper) Start(ctx context.Context, dur time.Duration) error

Start starts the reaper.

Jump to

Keyboard shortcuts

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