You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
retry_until=Time.now + 60# retry for 1 minute from now
167
+
retry_until=Time.now.utc + 60# retry for 1 minute from now
168
168
factor=2
169
169
170
170
begin
171
171
yield
172
172
rescueStandardError=>e
173
-
ifTime.now > retry_until
173
+
ifTime.now.utc > retry_until
174
174
@logger.error('Unable to establish a connection to diego backend, no more retries, raising an exception.')
175
175
raiseRequestError.new(e.message)
176
176
else
177
177
sleep_time=[delay,max_delay].min
178
-
@logger.info("Attempting to connect to the diego backend. Total #{(retry_until - Time.now).round(2)} seconds remaining. Next retry after #{sleep_time} seconds delay.")
178
+
@logger.info("Attempting to connect to the diego backend. Total #{(retry_until - Time.now.utc).round(2)} seconds remaining. Next retry after #{sleep_time} seconds.")
0 commit comments