avoid Hangfire connection errors on startup (#651)
This commit is contained in:
parent
1b807edd00
commit
450cfc11c2
|
@ -94,7 +94,8 @@ namespace StardewModdingAPI.Web
|
|||
.UseRecommendedSerializerSettings()
|
||||
.UseMongoStorage(mongoConfig.GetConnectionString(), $"{mongoConfig.Database}-hangfire", new MongoStorageOptions
|
||||
{
|
||||
MigrationOptions = new MongoMigrationOptions(MongoMigrationStrategy.Drop)
|
||||
MigrationOptions = new MongoMigrationOptions(MongoMigrationStrategy.Drop),
|
||||
CheckConnection = false // error on startup takes down entire process
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue