'Schedules the tasks of bears.
:param bears:
A list of bear instances to be scheduled onto the process pool.'

def _schedule_bears(self, bears):

    for bear in bears:
        if self.dependency_tracker.get_dependencies(bear):
            logging.warning('Dependencies    for    {!r}    not    yet    resolved,    holding    back.    This    should    not    happen,    the    dependency    tracking    system    should    be    smarter.    Please    report    this    to    the    developers.'.format(bear))
        else:
            tasks = {self.event_loop.run_in_executor(self.executor, bear.execute_task, bear_args, bear_kwargs) for (bear_args, bear_kwargs) in bear.generate_tasks()}
            self.running_tasks[bear] = tasks
            for task in tasks:
                task.add_done_callback(functools.partial(self._finish_task, bear))
            logging.debug('Scheduled    {!r}    (tasks:    {})'.format(bear, len(tasks)))
            if (not tasks):
                self._cleanup_bear(bear)
