se
This commit is contained in:
parent
9d1eec48b0
commit
02f1011bb5
@ -32,14 +32,18 @@ namespace AZ.Compute
|
||||
fileName = sc[0];
|
||||
arguments = sc[1];
|
||||
}
|
||||
|
||||
|
||||
|
||||
// هنا ينحط الكود مال الغورثمية الي تستنكي افضل ايجينت حتى تشغل التاسك عليه
|
||||
//Agents.First().Compute(fileName, arguments);
|
||||
|
||||
//مثلا اقل لود على السي بي يوم
|
||||
|
||||
agents.OrderBy(x => x.Cpu).First().Compute(fileName, arguments);
|
||||
var agent = agents.OrderBy(x => x.Cpu).First();
|
||||
|
||||
Console.WriteLine($"Agent {agent.Id} was selected for the new task");
|
||||
|
||||
agent.Compute(fileName, arguments);
|
||||
|
||||
// اقل نتورك
|
||||
//agents.OrderBy(x=>x.Network).First().Compute(fileName, arguments);
|
||||
|
Loading…
x
Reference in New Issue
Block a user