-
Notifications
You must be signed in to change notification settings - Fork 807
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
feat(core): Re-introduce executionEngine flag, add ExecutionEngineRunner that selects an underlying ExecutionRunner based on the specified ExecutionEngine #3984
base: master
Are you sure you want to change the base?
Conversation
0646923
to
7c67278
Compare
…ner that selects an underlying ExecutionRunner based on the specified ExecutionEngine
7c67278
to
5aeb61a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
import com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution | ||
import com.netflix.spinnaker.orca.pipeline.ExecutionRunner | ||
import com.netflix.spinnaker.orca.api.pipeline.models.ExecutionEngine.v3 | ||
import com.netflix.spinnaker.q.Queue | ||
import com.netflix.spinnaker.security.AuthenticatedRequest | ||
import org.springframework.stereotype.Component | ||
|
||
@Component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious. We drive the decision of what runner to use based on the annotation being present ..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I could change that if we don't like it but it seemed to make sense to me. I didn't want to add a field to ExecutionRunner
since the composite ExecutionEngineRunner
takes a list of ExecutionRunner
objects.
|
||
import com.netflix.spinnaker.orca.api.pipeline.models.PipelineExecution; | ||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
/** The touch point into running a {@link PipelineExecution}. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get some docs on the method as well?
@@ -0,0 +1,18 @@ | |||
package com.netflix.spinnaker.orca.api.pipeline.models; | |||
|
|||
public enum ExecutionEngine { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like docs on this.
new UnsupportedOperationException( | ||
"No execution engine runner found!"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a subtype of SystemException
?
Adds back the flag that was removed here: https://github.com/spinnaker/orca/pull/1917/files
Also moves the
ExecutionRunner
interface toorca-api
and introduces a compositeExecutionRunner
classExecutionEngineRunner
.This allows us to experiment with a
v4
execution engine.