jobdbschema

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 8 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.JobKey, error)
}

type RestartSubmitter

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

type Submitter

type Submitter struct {
	JobSubmitter
	RestartSubmitter
	Registry jobdb.JobSchemaRegistry
}

func (Submitter) SubmitJob

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

func (Submitter) SubmitRestartJob

func (s Submitter) SubmitRestartJob(ctx context.Context, job jobdb.SubmitRestartJob) (jobdb.JobKey, error)

type WorkflowEngine

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

func (WorkflowEngine) SubmitJob

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

func (WorkflowEngine) SubmitRestartJob

func (e WorkflowEngine) SubmitRestartJob(ctx context.Context, job jobdb.SubmitRestartJob) (jobdb.JobKey, error)

Jump to

Keyboard shortcuts

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