batch

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package batch holds the tasks that act on a batch job through its cluster's scheduler: building the submission script, submitting it and cancelling it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkIssuer

type LinkIssuer interface {
	Issue(ctx context.Context, processID string) (*link.Issued, error)
}

LinkIssuer mints the secrets a submission's job is handed so a Linkspan it runs can link back to Airavata. It is process/service.LinkService.

type SubmitBatchJobParameters

type SubmitBatchJobParameters struct {
	ProcessID      string
	ExecutablePath string
	Arguments      []string
	Environment    map[string]string
}

type Tasks

type Tasks struct {
	// contains filtered or unexported fields
}

Tasks carries out the batch tasks of a process. Its methods are workflow activities.

func New

New returns the batch tasks over the given repositories.

func (*Tasks) CancelBatchJob

func (a *Tasks) CancelBatchJob(ctx context.Context, executionContext *execution.Context, processID string, taskID string) (*execution.Context, error)

func (*Tasks) SubmitBatchJob

func (a *Tasks) SubmitBatchJob(ctx context.Context, executionContext *execution.Context, processID string, taskID string) (*execution.Context, error)

SubmitBatchJob builds the process's submission script, uploads it and submits it, recording the task's status as it goes.

Jump to

Keyboard shortcuts

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