Skip to content

Commit

Permalink
Make adjustments to retry creating the database
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Mar 2, 2022
1 parent d34251e commit 2922a6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ services:
dockerfile: src/Services/Podcasts/Podcast.Updater.Worker/Dockerfile
depends_on:
- podcast.db
- podcast.api
- storage

podcast.db:
image: mcr.microsoft.com/mssql/server:2019-latest
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Podcasts/Podcast.Updater.Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
hostContext.Configuration.GetConnectionString("PodcastDb"),
builder =>
{
builder.EnableRetryOnFailure(5, TimeSpan.FromSeconds(10), null);
builder.CommandTimeout(10);
builder.EnableRetryOnFailure(10, TimeSpan.FromSeconds(60), null);
builder.CommandTimeout(30);
}
);
})
Expand Down

0 comments on commit 2922a6e

Please sign in to comment.