def _update_dependencies(self, job):
        """Given a _Job, this updates the dependency list of all
        children of the given job and removes the given job from the
        list of dependencies.

        The dependency list of a jobs is used to determine if the job can
        be executed. It can start if there are no dependencies left. This
        removes the given job from the dependencies and should be called
        after the given job finished successfully.

        :param job: the parent job that will be removed from its child
                    dependencies
        """
        for c in job.children:
            if self.queued in c:
                self.log.debug("Master | Removing %s from child %s "
                               "dependencies", job.job_id, c)
                try:
                    self.queued[c].dependencies.remove(job.job_id)
                except KeyError:
                    self.log.error("Job with id %s no found in the child %s "
                                   "dependencies!", job.job_id, c)
dataset/ETHPy150Open thasso/pyjip/jip/grids.py/_GridMaster._update_dependencies/swapped operands of `in`