private static JobManager CreateJobWorkersManager() { var jobs = new IJob[] { new GetCucumberProjectTreeJob(TimeSpan.FromSeconds(5 * 60), TimeSpan.FromSeconds(20)), }; var coordinator = new SingleServerJobCoordinator(); var manager = new JobManager(jobs, coordinator); manager.Fail(ex => LogManager.GetLogger(typeof(WebBackgrounderSetup)).Error("Web Job Blow Up.", ex)); return(manager); }
private static JobManager CreateJobWorkersManager() { var jobs = new IJob[] { //new GetCucumberProjectTreeJob(TimeSpan.FromSeconds(60 * 60), TimeSpan.FromSeconds(20)), }; var coordinator = new SingleServerJobCoordinator(); var manager = new JobManager(jobs, coordinator); manager.Fail(null); //manager.Fail(ex => Logger.Error("Web Job Blow Up.", ex)); return(manager); }
private static JobManager CreateJobWorkersManager() { var jobs = new IJob[] { new ResetPingStatusJob(interval: TimeSpan.FromSeconds(20), timeout: TimeSpan.FromSeconds(30)), }; var coordinator = new SingleServerJobCoordinator(); var host = new JobHost(); var manager = new JobManager(jobs, host, coordinator); manager.Fail(ex => { }); return(manager); }
private static JobManager CreateJobWorkersManager() { var jobs = new IJob[] { new RouletteJob() }; if (System.Configuration.ConfigurationManager.AppSettings["Environment"] != "prod") { jobs = new IJob[] { }; } var coordinator = new SingleServerJobCoordinator(); var manager = new JobManager(jobs, coordinator); //manager.Fail(ex => Logger.Error("Web Job Blow Up.", ex)); return(manager); }