allocator

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package allocator owns the execution queue and is the only service allowed to mutate `Process` instances according to the project guidelines. It is responsible for scheduling tasks and reporting their status back to the executor/processor layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// PollingInterval is how often the allocator checks for processes that need tasks
	PollingInterval   time.Duration
	GroupTimeoutCheck time.Duration // how often to scan for timeouts
}

Config represents allocator service configuration

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default allocator configuration

type Service

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

Service allocates tasks to processes

func New

New creates a new allocator service

func (*Service) Shutdown

func (s *Service) Shutdown()

Shutdown stops the allocator service

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Start begins the task allocation loop

Jump to

Keyboard shortcuts

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