Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit b8aa9c4

Browse files
matt-royalTravis Patterson
andcommitted
Try to connect to the db for up to 60 seconds
[#175367511] Co-authored-by: Matt Royal <mroyal@vmware.com> Co-authored-by: Travis Patterson <travisp@vmware.com>
1 parent 56ee90b commit b8aa9c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tasks/db.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ namespace :db do
241241
logger.info("[Attempt ##{retries}] Retrying because [#{exception.class} - #{exception.message}]: #{exception.backtrace.first(5).join(' | ')}")
242242
end
243243

244-
Retryable.retryable(sleep: 1, tries: 5, log_method: log_method) do
244+
Retryable.retryable(sleep: 1, tries: 60, log_method: log_method) do
245245
VCAP::CloudController::DB.connect(RakeConfig.config.get(:db), logger)
246246
end
247247

0 commit comments

Comments
 (0)