orchestration

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package orchestration runs the workflows that carry out a process. The workflows are in the workflows package and the tasks they are made of in the tasks packages; this package wires them to the workflow backend and starts them.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoWorkflowBackend = errors.New("execution engine was built without a workflow backend")

Functions

This section is empty.

Types

type ExecutionEngine

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

ExecutionEngine runs the workflows that carry out a process, and starts them when a process is launched or the scheduler reports its job has finished.

func NewExecutionEngine

NewExecutionEngine returns the workflow set scheduling acts.

func (*ExecutionEngine) HandleBatchJobEmailResponse

func (w *ExecutionEngine) HandleBatchJobEmailResponse(ctx context.Context, email monitoring.Email) error

This is invoked when an email related to a batch job is received. It handles the email response accordingly.

func (*ExecutionEngine) LaunchBatchJobCompletion

func (w *ExecutionEngine) LaunchBatchJobCompletion(ctx context.Context, processID string) (string, error)

func (*ExecutionEngine) LaunchBatchJobSubmission

func (w *ExecutionEngine) LaunchBatchJobSubmission(ctx context.Context, processID string) (string, error)

func (*ExecutionEngine) LaunchWorkflow

func (w *ExecutionEngine) LaunchWorkflow(ctx context.Context, workflowID, processID string,
	workflowType model.ProcessWorkflowType) error

LaunchWorkflow starts the workflow of the given type for a process under an instance id the caller chose, so a caller can record the workflow before it starts.

func (*ExecutionEngine) StartEngine

func (w *ExecutionEngine) StartEngine()

Directories

Path Synopsis
Package execution holds what the workflows and the tasks they run share: the context handed from one task to the next, and the lookups every task starts from.
Package execution holds what the workflows and the tasks they run share: the context handed from one task to the next, and the lookups every task starts from.
tasks
batch
Package batch holds the tasks that act on a batch job through its cluster's scheduler: building the submission script, submitting it and cancelling it.
Package batch holds the tasks that act on a batch job through its cluster's scheduler: building the submission script, submitting it and cancelling it.
data
Package data holds the task that stages a file between two storages, either of which may be a cluster reached over SSH.
Package data holds the task that stages a file between two storages, either of which may be a cluster reached over SSH.
monitoring
Package monitoring follows a submitted batch job: the task that watches it, and the mailbox the scheduler reports its state changes to.
Package monitoring follows a submitted batch job: the task that watches it, and the mailbox the scheduler reports its state changes to.
Package workflows defines the workflows a process is carried out by, each a sequence of the tasks in the tasks packages.
Package workflows defines the workflows a process is carried out by, each a sequence of the tasks in the tasks packages.

Jump to

Keyboard shortcuts

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