Skip to content

Commit

Permalink
Merge pull request #4477 from kobergj/ExtendResumePPEvent
Browse files Browse the repository at this point in the history
Extend ResumePostprocessingEvent
  • Loading branch information
kobergj authored Jan 25, 2024
2 parents a3e8b04 + 3a93298 commit 7fd434a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/extend-resumepp-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Extend ResumePostprocessing event

Instead of just sending an uploadID, one can set a postprocessing step now to restart all uploads in this step
Also adds a new postprocessing step - "finished" - which means that postprocessing is finished but the storage provider
hasn't acknowledged it yet.

https://github.com/cs3org/reva/pull/4477
3 changes: 3 additions & 0 deletions pkg/events/postprocessing.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ var (
PPStepPolicies Postprocessingstep = "policies"
// PPStepDelay is the step that processing. Useful for testing or user annoyment
PPStepDelay Postprocessingstep = "delay"
// PPStepFinished is the step that signals that postprocessing is finished, but storage provider hasn't acknowledged it yet
PPStepFinished Postprocessingstep = "finished"

// PPOutcomeDelete means that the file and the upload should be deleted
PPOutcomeDelete PostprocessingOutcome = "delete"
Expand Down Expand Up @@ -193,6 +195,7 @@ func (UploadReady) Unmarshal(v []byte) (interface{}, error) {
// ResumePostprocessing can be emitted to repair broken postprocessing
type ResumePostprocessing struct {
UploadID string
Step Postprocessingstep
Timestamp *types.Timestamp
}

Expand Down

0 comments on commit 7fd434a

Please sign in to comment.