Help us shape the future of Go! Take the 2026 Go Developer Survey

workflow

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecipeProjectProvider

type RecipeProjectProvider func(projectId string, recipeRef string) (*recipe.Recipe, error)

type SWFWorkflowControl

type SWFWorkflowControl struct {
	Engine                        jobworkflow.Engine
	Registry                      RecipeProjectProvider
	PreferRuntimeRecipeResolution bool
}

func (*SWFWorkflowControl) CachedTaskOutput added in v0.0.55

func (s *SWFWorkflowControl) CachedTaskOutput(ctx context.Context, key jobdb.JobKey, taskType string, ordinal int64, inputHash string) (jobdb.TaskData, error)

CachedTaskOutput reads a successful historical task without rerunning it. Coordinates and input hash must match the runtime's mismatch report exactly.

func (*SWFWorkflowControl) Cancel

func (s *SWFWorkflowControl) Cancel(ctx context.Context, jobKey jobdb.JobKey) error

func (*SWFWorkflowControl) CompleteTask

func (s *SWFWorkflowControl) CompleteTask(ctx context.Context, jobKey jobdb.JobKey, taskOrdinal int64, hash string, outType any) error

func (*SWFWorkflowControl) GetArtifactLazy

func (s *SWFWorkflowControl) GetArtifactLazy(ctx context.Context, tenantId string, key jobdb.ArtifactKey) jobdb.Artifact

func (*SWFWorkflowControl) GetJobRun added in v0.0.72

func (*SWFWorkflowControl) GetWaitingTask

func (s *SWFWorkflowControl) GetWaitingTask(ctx context.Context, jobKey jobdb.JobKey) (workflowctl.TaskHandle, error)

func (*SWFWorkflowControl) InspectJob added in v0.0.24

func (*SWFWorkflowControl) JobResult

func (s *SWFWorkflowControl) JobResult(ctx context.Context, key jobdb.JobKey) (jobdb.JobData, error)

func (*SWFWorkflowControl) ListJobs

func (s *SWFWorkflowControl) ListJobs(ctx context.Context, request jobdb.ListJobsRequest) (jobs []workflowctl.JobItem, nextPage string, err error)

func (*SWFWorkflowControl) StartJob

Jump to

Keyboard shortcuts

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