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

fix(executionprocessor): add @Order to execution processors #2919

Merged

Conversation

marchello2000
Copy link
Contributor

This allows an execution processor to specify order of invocation.
This is useful (/ needed) when an preprocessor needs to operate on a
fully instantiated pipeline. If the pipeline is templated it won't be
fully instantiated till the templatepreprocessor runs.

This allows an execution processor to specify order of invocation.
This is useful (/ needed) when an preprocessor needs to operate on a
fully instantiated pipeline. If the pipeline is templated it won't be
fully instantiated till the templatepreprocessor runs.
import org.springframework.stereotype.Component
import javax.annotation.Nonnull
import javax.annotation.PostConstruct

@Component("pipelineTemplatePreprocessor")
@Order(1)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we want orders to be the same. Sounds like a neat recipe for indeterminate behavior.

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 what it is now anyway, but yeah, i can change it

@marchello2000 marchello2000 merged commit 10bb2cb into spinnaker:master May 16, 2019
@marchello2000 marchello2000 deleted the mark/execprocessor_order branch May 16, 2019 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants