def remove(self, task):
        """ remove a task from the runnable """

        # the scheduler need to be locked here
        with self._lock:
            try:
                self.runnable.remove(task)
                # if the task is blocked increment their number
                if task.blocked:
                    self.blocked += 1
            except __HOLE__:
                pass
dataset/ETHPy150Open benoitc/flower/flower/core/sched.py/Scheduler.remove