Building upon the work of issue 729565, Swarming task creation should deny a task when the task_slice expiration is larger than pending_estimate:
available_bots = all_bots_that_can_run(req.dimensions)
pending_tasks = all_tasks_that_can_run_on_bots(available_bots)
pending_estimate = sum(estimate(req) for req in pending_tasks) / len(available_bots)
plus a safety margin to not shed too aggressively. Note that this may interact in interesting ways with the LIFO scheduler; issue 901197. Marking LIFO as a blocker since this has interesting consequences and both must be sorted out.
In this case the task will immediately be denied with state LOAD_SHED.
Comment 1 by bugdroid1@chromium.org
, Dec 19