batch

package
v1.206.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveMessageFromS3

func RetrieveMessageFromS3(filename string, messagesBucketName string, isDebug bool) ([]byte, error)

func SubmitJob

func SubmitJob(batchJob BatchJob) error

Types

type BatchJob added in v1.163.0

type BatchJob struct {
	Name               *string
	Job                any
	FullJobDefinition  string
	FullJobQueue       string
	MessagesBucketName string
	IsDebug            bool
}

type BatchJobMessageType

type BatchJobMessageType string
const (
	JobDefinition = "batch-job-definition" // The job definition name on aws

	BatchJobMessageTypeS3 BatchJobMessageType = "s3"
)

type BatchJobQueue

type BatchJobQueue string
const (
	BatchJobQueueLow    BatchJobQueue = "batch-job-queue-low"
	BatchJobQueueMedium BatchJobQueue = "batch-job-queue-medium"
	BatchJobQueueHigh   BatchJobQueue = "batch-job-queue-high"
)

Queue names are the same as the batch Job queue names in aws

Jump to

Keyboard shortcuts

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