Skip to content

Commit

Permalink
fix: flip check for stable ecs tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed May 20, 2024
1 parent bb7d5da commit 166d4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cd/manager/common/aws/ecs/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (e Ecs) CheckTask(cluster, taskDefId string, running, stable bool, taskIds
// If checking for stable tasks, make sure that the task has been running for a few minutes.
if running {
if (*task.LastStatus != string(types.DesiredStatusRunning)) ||
(stable && time.Now().After((*task.StartedAt).Add(manager.DefaultWaitTime))) {
(stable && time.Now().Before((*task.StartedAt).Add(manager.DefaultWaitTime))) {
tasksInState = false
}
} else {
Expand Down

0 comments on commit 166d4ac

Please sign in to comment.