Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
mcantelon committed May 14, 2024
1 parent 3cde1d2 commit cae59a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/worker/workercmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func (m *Main) Run(ctx context.Context) error {
activities.NewMetadataValidationActivity().Execute,
temporalsdk_activity.RegisterOptions{Name: activities.MetadataValidationName},
)
w.RegisterActivityWithOptions(
activities.CombinePremisActivity().Execute,

Check failure on line 74 in cmd/worker/workercmd/cmd.go

View workflow job for this annotation

GitHub Actions / test

missing argument in conversion to activities.CombinePremisActivity

Check failure on line 74 in cmd/worker/workercmd/cmd.go

View workflow job for this annotation

GitHub Actions / test

missing argument in conversion to activities.CombinePremisActivity

Check failure on line 74 in cmd/worker/workercmd/cmd.go

View workflow job for this annotation

GitHub Actions / tests

missing argument in conversion to activities.CombinePremisActivity

Check failure on line 74 in cmd/worker/workercmd/cmd.go

View workflow job for this annotation

GitHub Actions / golangci-lint

missing argument in conversion to activities.CombinePremisActivity (typecheck)

Check failure on line 74 in cmd/worker/workercmd/cmd.go

View workflow job for this annotation

GitHub Actions / golangci-lint

missing argument in conversion to activities.CombinePremisActivity) (typecheck)
temporalsdk_activity.RegisterOptions{Name: activities.CombinePremisName},
)
w.RegisterActivityWithOptions(
activities.NewSipCreationActivity().Execute,
temporalsdk_activity.RegisterOptions{Name: activities.SipCreationName},
Expand Down
10 changes: 10 additions & 0 deletions internal/workflow/preprocessing.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ func (w *PreprocessingWorkflow) Execute(
return nil, e
}

// Combine PREMIS files into one
var combinePremis activities.CombinePremisResult
e = temporalsdk_workflow.ExecuteActivity(withLocalActOpts(ctx), activities.CombinePremisName, &activities.CombinePremisParams{
SipPath: localPath,
}).
Get(ctx, &combinePremis)
if e != nil {
return nil, e
}

// Repackage SFA SIP into a Bag.
var sipCreation activities.SipCreationResult
e = temporalsdk_workflow.ExecuteActivity(withLocalActOpts(ctx), activities.SipCreationName, &activities.SipCreationParams{
Expand Down

0 comments on commit cae59a6

Please sign in to comment.