public ActionResult Process() { var processQueue = false; if (_jobsQueueManager.GetJobsCount() > 0) { _services.Notifier.Information(T("Processing is in progress.")); processQueue = true; _jobsQueueProcessor.ProcessQueue(1, 1); } else { _services.Notifier.Information(T("Processing has been completed.")); } return(RedirectToAction("List", new { processQueue })); }
public void Sweep() { _jobsQueueProcessor.ProcessQueue(1, uint.MaxValue); }
public void Sweep() { _jobsQueueProcessor.ProcessQueue(); }
public ActionResult Process() { _jobsQueueProcessor.ProcessQueue(); _services.Notifier.Information(T("Processing has started.")); return(RedirectToAction("List")); }