summaryrefslogtreecommitdiff
path: root/app/services/clusters/applications/check_uninstall_progress_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/clusters/applications/check_uninstall_progress_service.rb')
-rw-r--r--app/services/clusters/applications/check_uninstall_progress_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/clusters/applications/check_uninstall_progress_service.rb b/app/services/clusters/applications/check_uninstall_progress_service.rb
index 663e4b1daef..022cc754af9 100644
--- a/app/services/clusters/applications/check_uninstall_progress_service.rb
+++ b/app/services/clusters/applications/check_uninstall_progress_service.rb
@@ -35,7 +35,7 @@ module Clusters
end
def check_timeout
- if timeouted?
+ if timed_out?
app.make_errored!("Operation timed out. Check pod logs for #{pod_name} for more details.")
else
WaitForUninstallAppWorker.perform_in(WaitForUninstallAppWorker::INTERVAL, app.name, app.id)
@@ -46,7 +46,7 @@ module Clusters
app.uninstall_command.pod_name
end
- def timeouted?
+ def timed_out?
Time.now.utc - app.updated_at.to_time.utc > WaitForUninstallAppWorker::TIMEOUT
end