mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Switched out the schedulers, this seems to be a better implimentation to the previous and is easier to add new "jobs" in.
This commit is contained in:
parent
8388514931
commit
9c61f909de
32 changed files with 1237 additions and 1091 deletions
|
@ -40,9 +40,6 @@ using PlexRequests.Store;
|
|||
using PlexRequests.Store.Repository;
|
||||
using System.Diagnostics;
|
||||
|
||||
using FluentScheduler;
|
||||
using PlexRequests.UI.Jobs;
|
||||
|
||||
namespace PlexRequests.UI
|
||||
{
|
||||
class Program
|
||||
|
@ -54,7 +51,7 @@ namespace PlexRequests.UI
|
|||
var port = -1;
|
||||
if (args.Length > 0)
|
||||
{
|
||||
for (int i = 0; i < args.Length; i++)
|
||||
for (var i = 0; i < args.Length; i++)
|
||||
{
|
||||
var arg = args[i].ToLowerInvariant().Substring(1);
|
||||
switch (arg)
|
||||
|
@ -101,8 +98,6 @@ namespace PlexRequests.UI
|
|||
{
|
||||
using (WebApp.Start<Startup>(options))
|
||||
{
|
||||
SetupSchedulers();
|
||||
|
||||
Console.WriteLine($"Request Plex is running on the following: http://+:{port}/");
|
||||
|
||||
if (Type.GetType("Mono.Runtime") != null)
|
||||
|
@ -165,12 +160,5 @@ namespace PlexRequests.UI
|
|||
LoggingHelper.ReconfigureLogLevel(LogLevel.FromOrdinal(logSettings.Level));
|
||||
}
|
||||
}
|
||||
|
||||
private static void SetupSchedulers()
|
||||
{
|
||||
TaskManager.TaskFactory = new PlexTaskFactory();
|
||||
TaskManager.Initialize(new PlexRegistry());
|
||||
TaskManager.Initialize(new MediaCacheRegistry());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue