se
This commit is contained in:
		| @@ -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);   | ||||
|   | ||||
		Reference in New Issue
	
	Block a user