diff options
Diffstat (limited to 'scripts/review_apps/automated_cleanup.rb')
-rwxr-xr-x | scripts/review_apps/automated_cleanup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/review_apps/automated_cleanup.rb b/scripts/review_apps/automated_cleanup.rb index 323a1deedfc..93412b658f6 100755 --- a/scripts/review_apps/automated_cleanup.rb +++ b/scripts/review_apps/automated_cleanup.rb @@ -81,7 +81,7 @@ class AutomatedCleanup release = Quality::HelmClient::Release.new(environment.slug, 1, deployed_at.to_s, nil, nil, review_apps_namespace) releases_to_delete << release end - elsif deployed_at < stop_threshold + elsif environment.state != 'stopped' && deployed_at < stop_threshold stop_environment(environment, deployment) else print_release_state(subject: 'Review App', release_name: environment.slug, release_date: last_deploy, action: 'leaving') |