1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 21:18:13 -05:00

sleep for 20 seconds between migrate re-tries

This commit is contained in:
Kyle Spearrin 2018-05-31 22:11:08 -04:00
parent a6260c867c
commit 6f1f2305e3

View File

@ -277,6 +277,7 @@ namespace Bit.Setup
var nextAttempt = attempt + 1; var nextAttempt = attempt + 1;
Console.WriteLine("Database is in script upgrade mode. " + Console.WriteLine("Database is in script upgrade mode. " +
"Trying again (attempt #{0})...", nextAttempt); "Trying again (attempt #{0})...", nextAttempt);
System.Threading.Thread.Sleep(20000);
MigrateDatabase(nextAttempt); MigrateDatabase(nextAttempt);
return; return;
} }