code: def ncores_used(self):
          
          return sum(task.manager.num_cores for task in self if task.status == task.S_RUN)
docs: Returns the number of cores used in this moment.
          A core is used if there's a job that is running on it.