Fix retry logic for deployment not seeding correctly
This commit is contained in:
Родитель
63a32751f6
Коммит
3badbaf364
|
@ -74,13 +74,18 @@ namespace Microsoft.Azure.IoTSolutions.UIConfig.Services
|
|||
}
|
||||
|
||||
this.log.Info("Seed begin", () => { });
|
||||
try
|
||||
{
|
||||
await this.SeedAsync();
|
||||
this.log.Info("Seed end", () => { });
|
||||
|
||||
await this.SetCompletedFlagAsync();
|
||||
|
||||
this.log.Info("Seed completed flag set", () => { });
|
||||
}
|
||||
finally
|
||||
{
|
||||
await this.mutex.LeaveAsync(SEED_COLLECTION_ID, MUTEX_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<bool> CheckCompletedFlagAsync()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче