I am using Hangfire 1.8.7 in .net 6 app with UseRecurringJob extension and this is how my configuration looks alike:
services.AddHangfire(configuration => configuration
.UseSQLiteStorage(Configuration["SQLitePath"], new SQLiteStorageOptions())
.UseRecommendedSerializerSettings()
.UseRecurringJob("jobs-definition.json"));
services.AddHangfireServer();
I am consuming IRecurringJob interface in a way like below, but problem is that so often my sqllite db file is being corrupted...
I think that this is because of Task.Run call, but mine integrators has async method (because of other methods there that are also async) to integrate records...
I don't know how to fix it but maybe someone faced issue like mine and can tell me more about what to do.
I am using Hangfire 1.8.7 in .net 6 app with UseRecurringJob extension and this is how my configuration looks alike:
I am consuming
IRecurringJob
interface in a way like below, but problem is that so often my sqllite db file is being corrupted... I think that this is because of Task.Run call, but mine integrators has async method (because of other methods there that are also async) to integrate records... I don't know how to fix it but maybe someone faced issue like mine and can tell me more about what to do.