DetachedServer.assign_tasks
- DetachedServer.assign_tasks(tasks)
Go through the tasks and assign each one to an employee.
- Strategy:
Assign first to idle workers evenly and randomly
Employees with more idle workers get prioritized
Assign remaining tasks to employees with the fewest tasks