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

jobdbschema

package
v0.0.113 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash() (string, error)

func Register

func Register(ctx context.Context, registry jobdb.JobSchemaRegistry, tenantID string) error

func Schema

func Schema() json.RawMessage

func Selector

func Selector() (*jobdb.JobSchemaSelector, error)

func SetSubmitJobSchema

func SetSubmitJobSchema(job *jobdb.SubmitJob) error

func SetSubmitRestartJobSchema

func SetSubmitRestartJobSchema(job *jobdb.SubmitRestartJob) error

Types

type JobSubmitter

type JobSubmitter interface {
	SubmitJob(context.Context, jobdb.SubmitJob) (jobdb.JobHandle, error)
}

type RestartSubmitter

type RestartSubmitter interface {
	SubmitRestartJob(context.Context, jobdb.SubmitRestartJobRequest) (jobdb.JobHandle, error)
}

type Submitter

type Submitter struct {
	JobSubmitter
	RestartSubmitter
	Registry jobdb.JobSchemaRegistry
}

func (Submitter) GetJob added in v0.0.52

func (s Submitter) GetJob(ctx context.Context, key jobdb.JobKey) (jobdb.JobInfo, error)

func (Submitter) SubmitJob

func (s Submitter) SubmitJob(ctx context.Context, job jobdb.SubmitJob) (jobdb.JobHandle, error)

func (Submitter) SubmitRestartJob

func (s Submitter) SubmitRestartJob(ctx context.Context, req jobdb.SubmitRestartJobRequest) (jobdb.JobHandle, error)

type WorkflowEngine

type WorkflowEngine struct {
	jobworkflow.Engine
	Registry jobdb.JobSchemaRegistry
}

func (WorkflowEngine) AddGoalCandidate added in v0.0.94

func (WorkflowEngine) FailGoal added in v0.0.94

func (WorkflowEngine) GetDependencyWait added in v0.0.94

func (WorkflowEngine) GetGoal added in v0.0.94

func (e WorkflowEngine) GetGoal(ctx context.Context, key jobdb.GoalKey) (jobdb.GoalInfo, error)

func (WorkflowEngine) ListDependencyWaits added in v0.0.94

func (WorkflowEngine) ListGoals added in v0.0.94

func (WorkflowEngine) SubmitJob

func (e WorkflowEngine) SubmitJob(ctx context.Context, job jobdb.SubmitJob) (jobdb.JobHandle, error)

func (WorkflowEngine) SubmitJobRef added in v0.0.94

func (e WorkflowEngine) SubmitJobRef(ctx context.Context, job jobdb.SubmitJob) (jobref.Ref, error)

SubmitJobRef projects the native SDK handle without another identity read.

func (WorkflowEngine) SubmitRestartJob

func (WorkflowEngine) SubmitRestartJobRef added in v0.0.94

func (e WorkflowEngine) SubmitRestartJobRef(ctx context.Context, req jobdb.SubmitRestartJobRequest) (jobref.Ref, error)

Jump to

Keyboard shortcuts

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