workflow

package
v0.0.0-...-90561fa Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Start(ctx context.Context, workspace string) error
	Cancel(ctx context.Context, workspace string) error
}

type DefaultController

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

func NewController

func NewController(
	db *sql.DB,
	explorer account.Explorer,
	workflowStore workflow.Store,
	embeddedUsageStore usage.Store,
) *DefaultController

func (*DefaultController) Cancel

func (ctrl *DefaultController) Cancel(_ context.Context, workspace string) error

func (*DefaultController) Init

func (ctrl *DefaultController) Init(ctx context.Context, syncEnabled bool) error

func (*DefaultController) Start

func (ctrl *DefaultController) Start(ctx context.Context, workspace string) error

type Runner

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

func NewRunner

func NewRunner(
	wf *store.Workflow,
	db *sql.DB,
	workflowStore workflow.Store,
	costManager workspace.CostManager,
	usageStore usage.Store,
) *Runner

func (*Runner) Done

func (r *Runner) Done() <-chan struct{}

func (*Runner) Progress

func (r *Runner) Progress() <-chan RunnerProgress

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

type RunnerConfig

type RunnerConfig struct {
	BatchInterval time.Duration
	SleepInterval time.Duration
}

type RunnerProgress

type RunnerProgress struct {
	ProcessedRecords int64
	TotalRecords     int64
	LastProcessedAt  time.Time
}

Jump to

Keyboard shortcuts

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