mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Make each JobsQueue tasks execute in its own transaction, see #5365
This commit is contained in:
parent
4f57ecb487
commit
8456716d8b
@ -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."));
|
||||
|
@ -8,7 +8,7 @@ namespace Orchard.JobsQueue.Services {
|
||||
}
|
||||
|
||||
public void Sweep() {
|
||||
_jobsQueueProcessor.ProcessQueue(10, uint.MaxValue);
|
||||
_jobsQueueProcessor.ProcessQueue(1, uint.MaxValue);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user