Skip to content

Commit

Permalink
fix(orca-clouddriver): Do not mark ResizeAsgStage as SUCCESSFUL in ta…
Browse files Browse the repository at this point in the history
…skGraph() (#3737)
  • Loading branch information
christopherthielen committed Jun 12, 2020
1 parent f32906c commit b070125
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ class ResizeAsgStage implements StageDefinitionBuilder {

@Override
void taskGraph(@Nonnull StageExecution stage, @Nonnull TaskNode.Builder builder) {
if (!stage.parentStageId || stage.execution.stages.find {
it.id == stage.parentStageId
}.type != stage.type) {
// mark as SUCCEEDED otherwise a stage w/o child tasks will remain in NOT_STARTED
stage.status = ExecutionStatus.SUCCEEDED
return
}

builder
.withTask("determineHealthProviders", DetermineHealthProvidersTask)
.withTask("resizeAsg", ResizeAsgTask)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ResizeAsgStageSpec extends Specification {
stageBuilder.buildTaskGraph(stage)

then:
stage.status == ExecutionStatus.SUCCEEDED
stage.status == ExecutionStatus.NOT_STARTED

when:
stageBuilder.beforeStages(stage, graphBefore)
Expand Down

0 comments on commit b070125

Please sign in to comment.