code: def ncores_reserved(self):
          
          return sum(task.manager.num_cores for task in self if task.status == task.S_SUB)
docs: Returns the number of cores reserved in this moment.
          A core is reserved if it's still not running but
          we have submitted the task to the queue manager.