mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
Wait 20 seconds to allow database to come online
This commit is contained in:
parent
b2045b92b4
commit
d8361ff1d6
@ -29,6 +29,9 @@ namespace Bit.Admin.HostedServices
|
||||
|
||||
public virtual async Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
// Wait 20 seconds to allow database to come online
|
||||
await Task.Delay(20000);
|
||||
|
||||
var maxMigrationAttempts = 10;
|
||||
for(var i = 1; i <= maxMigrationAttempts; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user