def _handle_no_predecessor_legacy(self, node, trans_id):
        if not self.has_root:
            return

        if node == self.root:
            return

        redis_key = self._gen_key(node, ['predecessors', ])

        rootismember = self.connexion.sismember(redis_key, self.root)
        card = self.connexion.scard(redis_key)
        if card == 0:
            self._add_predecessor(node, self.root, trans_id)
            self._add_successor(self.root, node, trans_id)

        elif card > 1 and rootismember == 1:
            self._remove_predecessor(node, self.root, trans_id)
            self._remove_successor(self.root, node, trans_id)
The uuid of this job.
dataset/ETHPy150Open kakwa/pygraph_redis/pygraph_redis/directed_graph.py/Directed_graph._handle_no_predecessor_legacy--crossover with--dataset/ETHPy150Open openstack/taskflow/taskflow/jobs/base.py/Job.uuid