Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Aug 8, 2024
1 parent 88ccd20 commit e9fe18a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal-scripts/ci-cd/publish/restart-web-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RestartWebServer
RESTART_WEB_SERVER_API_URL = 'https://apt.fullstaqruby.org/admin/restart_web_server'
LATEST_REPO_QUERY_TIMESTAMP_URL = 'https://apt.fullstaqruby.org/admin/repo_query_time'

TIMEOUT_SECS = 12
TIMEOUT_SECS = 60

class QueryError < StandardError; end

Expand All @@ -39,14 +39,14 @@ def main
timestamp = get_latest_production_repo_query_timestamp
rescue QueryError, SystemCallError => e
log_info "Error querying latest web server timestamp: #{e.message}"
log_info 'Retrying in 5s...'
sleep 5
log_info 'Retrying in 4s...'
sleep 4
next
end

if timestamp == orig_timestamp
log_info 'Web server has not restarted yet; waiting...'
sleep 5
sleep 4
next
end

Expand Down

0 comments on commit e9fe18a

Please sign in to comment.