Make each JobsQueue tasks execute in its own transaction, see #5365

This commit is contained in:
Lombiq 2017-01-06 20:43:31 +01:00 committed by Zoltán Lehóczky
parent 4f57ecb487
commit 8456716d8b
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ namespace Orchard.JobsQueue.Controllers {
if (_jobsQueueManager.GetJobsCount() > 0) {
_services.Notifier.Information(T("Processing is in progress."));
processQueue = true;
_jobsQueueProcessor.ProcessQueue(10, 1);
_jobsQueueProcessor.ProcessQueue(1, 1);
}
else {
_services.Notifier.Information(T("Processing has been completed."));

View File

@ -8,7 +8,7 @@ namespace Orchard.JobsQueue.Services {
}
public void Sweep() {
_jobsQueueProcessor.ProcessQueue(10, uint.MaxValue);
_jobsQueueProcessor.ProcessQueue(1, uint.MaxValue);
}
}
}