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