Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
fix retry logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Sep 9, 2016
1 parent 7307fe9 commit ea1d98d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void perform(AmazonECS ecs, AbstractBuild<?, ?> build, Launcher launcher,

if ("PRIMARY".equalsIgnoreCase(deployment.getStatus())) {
// Retry if it's PRIMARY and desired !== running
shouldRetry = shouldRetry || deployment.getDesiredCount().equals(deployment.getRunningCount());
shouldRetry = shouldRetry || !deployment.getDesiredCount().equals(deployment.getRunningCount());
} else {
// Retry if we found a non-primary task
shouldRetry = true;
Expand Down

0 comments on commit ea1d98d

Please sign in to comment.