workflow

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package workflow contains a Temporal workflow for ingesting and preserving SIPs using Archivematica or A3M.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessingWorkflow

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

func NewProcessingWorkflow

func NewProcessingWorkflow(
	cfg config.Configuration,
	rng io.Reader,
	ingestsvc ingest.Service,
	wsvc watcher.Service,
) *ProcessingWorkflow

func (*ProcessingWorkflow) Execute

ProcessingWorkflow orchestrates all the activities related to the processing of a SIP in Archivematica, including is retrieval, creation of transfer, etc...

Retrying this workflow would result in a new Archivematica transfer. We do not have a retry policy in place. The user could trigger a new instance via the API.

func (*ProcessingWorkflow) SessionHandler

func (w *ProcessingWorkflow) SessionHandler(
	sessCtx temporalsdk_workflow.Context,
	attempt int,
	state *workflowState,
) error

SessionHandler runs activities that belong to the same session.

type Timer

type Timer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer() *Timer

func (*Timer) Exceeded

func (t *Timer) Exceeded() bool

Directories

Path Synopsis
Package activities implements Enduro's workflow activities.
Package activities implements Enduro's workflow activities.

Jump to

Keyboard shortcuts

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