Add items to prevent azure from overloading db

This commit is contained in:
2016-04-09 22:20:06 -04:00
parent a5072850ea
commit 2c3aa9c989
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ namespace LeafWeb.Web
private void SetupRecurringJobs()
{
// TODO: new SqlServerDistributedLock
RecurringJob.AddOrUpdate<PiscalQueueManager>(PiscalProcessQueue, p => p.ProcessQueue(), Cron.Minutely());
// https://discuss.hangfire.io/t/how-to-create-cron-job-that-is-executing-every-15-minutes/533
RecurringJob.AddOrUpdate<PiscalQueueManager>(PiscalProcessQueue, p => p.ProcessQueue(), "*/15 * * * *");
}
public static void TriggerPiscalProcessQueue()