Piscal Queue working more resilient to error

This commit is contained in:
2016-04-18 10:44:36 -04:00
parent 6623aa48ea
commit ca1a235c1d
21 changed files with 418 additions and 176 deletions
-2
View File
@@ -3,7 +3,6 @@ using Hangfire;
using Microsoft.Owin;
using LeafWeb.Web;
using LeafWeb.Web.Services;
using NLog.Internal;
using Owin;
using ConfigurationManager = System.Configuration.ConfigurationManager;
@@ -24,7 +23,6 @@ namespace LeafWeb.Web
private void SetupRecurringJobs()
{
// TODO: new SqlServerDistributedLock
var queueInterval = ConfigurationManager.AppSettings["ProcessQueueInterval"];
// https://discuss.hangfire.io/t/how-to-create-cron-job-that-is-executing-every-15-minutes/533
RecurringJob.AddOrUpdate<PiscalQueueManager>(PiscalProcessQueue, p => p.ProcessQueue(), queueInterval);