migrator

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultMigrator

func NewDefaultMigrator(cfg *config.Config, jobService application.JobService, appClients *clients.ClientList) *migrator

NewDefaultMigrator creates a new default migrator with the provided job service and clients

Types

type Migrator

type Migrator interface {
	Shutdown(ctx context.Context) error
	Start(ctx context.Context)
}

Migrator defines the contract for migration operations

type StateTransitionRule added in v0.22.0

type StateTransitionRule struct {
	// TaskTargetState is the state all tasks must reach
	TaskTargetState domain.State
	// JobTargetState is the state the job should transition to
	JobTargetState domain.State
	// Description explains the rule
	Description string
}

StateTransitionRule defines when a job should transition based on task states

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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