job

package
v0.1.4-0...-5fd395e Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnableCloudAccessAction is the action of enabling the access to cloud staging area
	EnableCloudAccessAction = "enable-cloud-access"
	// DisableCloudAccessAction is the action of enabling the access to cloud staging area
	DisableCloudAccessAction = "disable-cloud-access"
	// DataTransferAction is the action of transferring a dataset
	DataTransferAction = "transfer-request-monitoring"
	// CloudDataDeleteAction is the action of deleting a dataset from Cloud storage
	CloudDataDeleteAction = "cloud-data-delete-monitoring"
	// GetDDIDatasetInfoAction is the action of getting info on a dataset (size, number of files)
	GetDDIDatasetInfoAction = "get-ddi-dataset-info-monitoring"
	// WaitForDatasetAction is the action of waiting for a dataset to appear in DDI
	WaitForDatasetAction = "wait-for-dataset"
	// StoreRunningHPCJobFilesToDDIAction is the action of storing files created/updated
	// by a running HEAppE job
	StoreRunningHPCJobFilesToDDIAction = "store-running-hpc-job-files"
	// StoreRunningHPCJobFilesToDDIAction is the action of storing files created/updated
	// by a running HEAppE job and grouping them in datasets according to a pattern
	StoreRunningHPCJobFilesGroupByDatasetAction = "store-running-hpc-job-files-group-by-dataset"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionOperator

type ActionOperator struct {
}

ActionOperator holds function allowing to execute an action

func (*ActionOperator) ExecAction

func (o *ActionOperator) ExecAction(ctx context.Context, cfg config.Configuration, taskID, deploymentID string, action *prov.Action) (bool, error)

ExecAction allows to execute and action

type ChangedFile

type ChangedFile struct {
	FileName         string
	LastModifiedDate string
	GroupIdentifier  string `json:"groupIdentifier,omitempty"`
}

ChangedFile holds properties of a file created/updated by a job

type CloudToDDIJobExecution

type CloudToDDIJobExecution struct {
	*DDIJobExecution
}

CloudToDDIJobExecution holds Cloud staging area to DDI data transfer job Execution properties

func (*CloudToDDIJobExecution) Execute

func (e *CloudToDDIJobExecution) Execute(ctx context.Context) error

Execute executes a synchronous operation

type DDIDatasetInfoExecution

type DDIDatasetInfoExecution struct {
	*DDIJobExecution
}

DDIDatasetInfoExecution holds DDI dataset info job Execution properties

func (*DDIDatasetInfoExecution) Execute

func (e *DDIDatasetInfoExecution) Execute(ctx context.Context) error

Execute executes a synchronous operation

type DDIJobExecution

type DDIJobExecution struct {
	*common.DDIExecution
	ActionType             string
	MonitoringTimeInterval time.Duration
}

DDIJobExecution holds DDI job Execution properties

func (*DDIJobExecution) ExecuteAsync

func (e *DDIJobExecution) ExecuteAsync(ctx context.Context) (*prov.Action, time.Duration, error)

ExecuteAsync executes an asynchronous operation

type DDIRuntimeToCloudExecution

type DDIRuntimeToCloudExecution struct {
	*DDIJobExecution
}

DDIRuntimeToCloudExecution holds the properties of a data transfer from DDO to cloud of a dataset (or files in this dataset) determined at runtime

func (*DDIRuntimeToCloudExecution) Execute

Execute executes a synchronous operation

type DDIRuntimeToHPCExecution

type DDIRuntimeToHPCExecution struct {
	*DDIJobExecution
}

DDIRuntimeToHPCExecution holds DDI to HPC data transfer job Execution properties

func (*DDIRuntimeToHPCExecution) Execute

Execute executes a synchronous operation

type DDIToCloudExecution

type DDIToCloudExecution struct {
	*DDIJobExecution
}

DDIToCloudExecution holds DDI to Cloud data transfer job Execution properties

func (*DDIToCloudExecution) Execute

func (e *DDIToCloudExecution) Execute(ctx context.Context) error

Execute executes a synchronous operation

type DDIToHPCExecution

type DDIToHPCExecution struct {
	*DDIJobExecution
}

DDIToHPCExecution holds DDI to HPC data transfer job Execution properties

func (*DDIToHPCExecution) Execute

func (e *DDIToHPCExecution) Execute(ctx context.Context) error

Execute executes a synchronous operation

type DatasetReplicationInfo

type DatasetReplicationInfo struct {
	DatasetPath string
	Replication map[string]ReplicationInfo // replication info per location
}

DatasetReplicationInfo holds replication info of a dataset over several locations

type DeleteCloudDataExecution

type DeleteCloudDataExecution struct {
	*DDIJobExecution
}

DeleteCloudDataExecution holds Cloud data deletion job Execution properties

func (*DeleteCloudDataExecution) Execute

Execute executes a synchronous operation

func (*DeleteCloudDataExecution) SubmitCloudStagingAreaDataDeletion

func (e *DeleteCloudDataExecution) SubmitCloudStagingAreaDataDeletion(ctx context.Context) error

SubmitCloudStagingAreaDataDeletion deletes a dataset from the Cloud staging area

type DisableCloudAccessJobExecution

type DisableCloudAccessJobExecution struct {
	*DDIJobExecution
}

DisableCloudAccessJobExecution holds Cloud staging area access disablement job Execution properties

func (*DisableCloudAccessJobExecution) Execute

Execute executes a synchronous operation

type EnableCloudAccessJobExecution

type EnableCloudAccessJobExecution struct {
	*DDIJobExecution
}

EnableCloudAccessJobExecution holds Cloud staging area access enablement job Execution properties

func (*EnableCloudAccessJobExecution) Execute

Execute executes a synchronous operation

type HPCToDDIExecution

type HPCToDDIExecution struct {
	*DDIJobExecution
}

HPCToDDIExecution holds HPC to DDI data transfer job Execution properties

func (*HPCToDDIExecution) Execute

func (e *HPCToDDIExecution) Execute(ctx context.Context) error

Execute executes a synchronous operation

type ReplicationInfo

type ReplicationInfo struct {
	RequestID        string
	Status           string
	ErrorMessage     string
	NumberOfAttempts int
}

ReplicationInfo holds the request ID and status of a replication

type StoreRunningHPCJobFilesGroupByDataset

type StoreRunningHPCJobFilesGroupByDataset struct {
	*common.DDIExecution
	MonitoringTimeInterval time.Duration
}

StoreRunningHPCJobFilesGroupByDataset holds DDI to HPC data transfer job Execution properties, and allows to group files to store in datasets according to a pattern

func (*StoreRunningHPCJobFilesGroupByDataset) Execute

Execute executes a synchronous operation

func (*StoreRunningHPCJobFilesGroupByDataset) ExecuteAsync

ExecuteAsync executes an asynchronous operation

type StoreRunningHPCJobFilesToDDI

type StoreRunningHPCJobFilesToDDI struct {
	*common.DDIExecution
	MonitoringTimeInterval time.Duration
}

StoreRunningHPCJobFilesToDDI holds DDI to HPC data transfer job Execution properties

func (*StoreRunningHPCJobFilesToDDI) Execute

Execute executes a synchronous operation

func (*StoreRunningHPCJobFilesToDDI) ExecuteAsync

ExecuteAsync executes an asynchronous operation

type StoredFileInfo

type StoredFileInfo struct {
	LastModifiedDate string
	RequestID        string
	Status           string
	ErrorMessage     string
	GroupIdentifier  string
	NumberOfAttempts int
}

StoredFileInfo holds properties of a file stored in DDI

type ToBeStoredFileInfo

type ToBeStoredFileInfo struct {
	GroupIdentifier        string
	LastModifiedDate       string
	CandidateToStorageDate string
}

ToBeStoredFileInfo holds properties of a file to be stored in DDI

type WaitForDataset

type WaitForDataset struct {
	*common.DDIExecution
	MonitoringTimeInterval time.Duration
}

WaitForDataset holds DDI to HPC data transfer job Execution properties

func (*WaitForDataset) Execute

func (e *WaitForDataset) Execute(ctx context.Context) error

Execute executes a synchronous operation

func (*WaitForDataset) ExecuteAsync

func (e *WaitForDataset) ExecuteAsync(ctx context.Context) (*prov.Action, time.Duration, error)

ExecuteAsync executes an asynchronous operation

Jump to

Keyboard shortcuts

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