add error log when allocated resource is not enough to launch all tasks