diff options
Diffstat (limited to 'app/services/clusters')
-rw-r--r-- | app/services/clusters/applications/check_installation_progress_service.rb | 4 | ||||
-rw-r--r-- | app/services/clusters/applications/check_uninstall_progress_service.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/services/clusters/applications/check_installation_progress_service.rb b/app/services/clusters/applications/check_installation_progress_service.rb index c592d608b89..ae4b86a0614 100644 --- a/app/services/clusters/applications/check_installation_progress_service.rb +++ b/app/services/clusters/applications/check_installation_progress_service.rb @@ -37,7 +37,7 @@ module Clusters end def check_timeout - if timeouted? + if timed_out? begin app.make_errored!("Operation timed out. Check pod logs for #{pod_name} for more details.") end @@ -51,7 +51,7 @@ module Clusters install_command.pod_name end - def timeouted? + def timed_out? Time.now.utc - app.updated_at.to_time.utc > ClusterWaitForAppInstallationWorker::TIMEOUT end 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 |