mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -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
|
@ -25,36 +25,33 @@
|
|||
// ************************************************************************/
|
||||
#endregion
|
||||
using System;
|
||||
using FluentScheduler;
|
||||
|
||||
using NLog;
|
||||
|
||||
using Owin;
|
||||
|
||||
using PlexRequests.UI.Jobs;
|
||||
using TaskFactory = FluentScheduler.TaskFactory;
|
||||
|
||||
namespace PlexRequests.UI
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
private static Logger Log = LogManager.GetCurrentClassLogger();
|
||||
public void Configuration(IAppBuilder app)
|
||||
{
|
||||
try
|
||||
{
|
||||
app.UseNancy();
|
||||
|
||||
|
||||
var scheduler = new Scheduler();
|
||||
scheduler.StartScheduler();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Log.Fatal(exception);
|
||||
throw;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue