Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outcome and event for retrying postprocessing steps #4384

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

aduffeck
Copy link
Contributor

@aduffeck aduffeck commented Dec 4, 2023

The retry outcome can be used by postprocessing steps to reschedule themselves, e.g. after a temporary failures.

@aduffeck aduffeck requested a review from labkode as a code owner December 4, 2023 09:01
Copy link

update-docs bot commented Dec 4, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@aduffeck aduffeck requested review from glpatcern and a team as code owners December 4, 2023 09:04
@@ -153,6 +155,22 @@ func (PostprocessingFinished) Unmarshal(v []byte) (interface{}, error) {
return e, err
}

// PostprocessingRetry is emitted by *some* service which can decide that
type PostprocessingRetry struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not extend (and maybe rename) already existing ResumePostprocessing event?

Copy link
Contributor Author

@aduffeck aduffeck Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kobergj PostprocessingRetry is an informational event, emitted so that other services can learn about retries happening in the system. It is not used for control flow.
Instead the postprocessing service will, when it detects a retry outcome, emit the PostprocessingRetry right away and then emit a StartPostprocessingStep event after the according backoff period to actually run the failed postprocessing step again.

Does that make sense to you? If yes I'll try to adjust the event documentation to make that more clear.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. Who is listening to this event at the moment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's currently not being received by anyone :)

@aduffeck aduffeck merged commit ab6ed78 into cs3org:edge Dec 12, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants