Order of task Execution by due-time
This commit is contained in:
parent
f9a7828d02
commit
86752c9a7e
@ -54,7 +54,7 @@ public class TaskManager
|
|||||||
waitingButExecute.state = TrangaTask.ExecutionState.Enqueued;
|
waitingButExecute.state = TrangaTask.ExecutionState.Enqueued;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (TrangaTask enqueuedTask in _allTasks.Where(enqueuedTask => enqueuedTask.state is TrangaTask.ExecutionState.Enqueued))
|
foreach (TrangaTask enqueuedTask in _allTasks.Where(enqueuedTask => enqueuedTask.state is TrangaTask.ExecutionState.Enqueued).OrderBy(enqueuedTask => enqueuedTask.nextExecution))
|
||||||
{
|
{
|
||||||
switch (enqueuedTask.task)
|
switch (enqueuedTask.task)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user