Skip to content

Commit

Permalink
fix(provider/cf): fix stop server group state checking (#4661) (#4662)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Smith <zachsmith@ip-192-168-1-69.us-west-2.compute.internal>
(cherry picked from commit e7152e0)

Co-authored-by: Zach Smith <33258732+zachsmith1@users.noreply.github.com>
  • Loading branch information
mergify[bot] and zachsmith1 committed Jun 5, 2020
1 parent 8d527f1 commit 4727a64
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public Void operate(List priorOutputs) {
ProcessStats.State state =
operationPoller.waitForOperation(
() -> client.getApplications().getProcessState(description.getServerGroupId()),
inProgressState -> inProgressState != ProcessStats.State.STARTING,
inProgressState ->
inProgressState != ProcessStats.State.STARTING
&& inProgressState != ProcessStats.State.RUNNING,
null,
getTask(),
description.getServerGroupName(),
Expand Down

0 comments on commit 4727a64

Please sign in to comment.