mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 00:06:05 -07:00
Remove the need for the schedules.db #2994
This commit is contained in:
parent
4190baf591
commit
1cf1c06e5e
1 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,7 @@ using AutoMapper;
|
||||||
using AutoMapper.EquivalencyExpression;
|
using AutoMapper.EquivalencyExpression;
|
||||||
using Hangfire;
|
using Hangfire;
|
||||||
using Hangfire.Dashboard;
|
using Hangfire.Dashboard;
|
||||||
|
using Hangfire.MemoryStorage;
|
||||||
using Hangfire.SQLite;
|
using Hangfire.SQLite;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
@ -98,11 +99,10 @@ namespace Ombi
|
||||||
{
|
{
|
||||||
i.StoragePath = string.Empty;
|
i.StoragePath = string.Empty;
|
||||||
}
|
}
|
||||||
var sqliteStorage = $"Data Source={Path.Combine(i.StoragePath, "Schedules.db")};";
|
|
||||||
|
|
||||||
services.AddHangfire(x =>
|
services.AddHangfire(x =>
|
||||||
{
|
{
|
||||||
x.UseSQLiteStorage(sqliteStorage);
|
x.UseMemoryStorage();
|
||||||
x.UseActivator(new IoCJobActivator(services.BuildServiceProvider()));
|
x.UseActivator(new IoCJobActivator(services.BuildServiceProvider()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue