def _remove_children(self, job):
        """Given a _Job instance, this recursively removes all child
        jobs from the list of queued jobs. This ONLY works on children
        that are NOT currently running.

        :param job: the parent job instance
        """
        # recursive remove of all child jobs
        # that are still queued
        self.log.debug("Master | Removing all children of %s from queued jobs",
                       job.job_id)
        for c in job.children:
            if self.queued in c:
                child = self.queued[c]
                self._remove_children(child)
                self._update_dependencies(child)
                del self.queued[c]
dataset/ETHPy150Open thasso/pyjip/jip/grids.py/_GridMaster._remove_children/swapped operands of `in`