googlebatch

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultJobCategory is the default job category used when
	DefaultJobCategory    = gcpbatchtracker.JobCategoryScript
	JobCategoryScript     = gcpbatchtracker.JobCategoryScript
	JobCategoryScriptPath = gcpbatchtracker.JobCategoryScriptPath
)

Variables

This section is empty.

Functions

func NewGoogleBatchContext

func NewGoogleBatchContext(region, googleProjectID string) *wfl.Context

NewGoogleBatchContext creates a new Context which executes tasks of the workflow in Google Batch.

func NewGoogleBatchContextByCfg

func NewGoogleBatchContextByCfg(cfg Config) *wfl.Context

NewGoogleBatchContextByCfg creates a new Context with Google Batch as task execution engine.

Types

type Config

type Config struct {
	DBFile             string
	DefaultJobCategory string
	DefaultTemplate    drmaa2interface.JobTemplate
	// Google Project ID mandatory
	GoogleProjectID string
	// Region at GCP mandatory
	Region string
}

Config describes the default container image to use when no other is specified in the JobCategory of the JobTemplate. This allows to use the Run() method instead of RunT().

Jump to

Keyboard shortcuts

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