Skip to content

Commit

Permalink
Revert "#50 auto-restart hangfire"
Browse files Browse the repository at this point in the history
This reverts commit 80fbaf0.
  • Loading branch information
johnml1135 committed Aug 30, 2023
1 parent 80fbaf0 commit e30aaab
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,10 @@ public static IMachineBuilder AddMongoBackgroundJobClient(
)
{
builder.Services.AddHangfire(
(provider, configuration) =>
configuration
.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
c =>
c.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseFilter(provider.GetRequiredService<AutomaticRetryAttribute>())
.UseMongoStorage(
connectionString ?? builder.Configuration.GetConnectionString("Hangfire"),
new MongoStorageOptions
Expand Down

0 comments on commit e30aaab

Please sign in to comment.