def setStatus(self, pStatus, pCascadeUpdate=False):
        '''
        | Update commands in order to reach the required status.
        | If proper param is given, depending node will receive the same status.

        :param pStatus: New status value to assign to the current node
        :param pCascadeUpdate: Flag indicating if the depending node need to be updated in cascade
        '''

        if pCascadeUpdate:
            for dependingNode in self.reverseDependencies:
                dependingNode.setStatus(pStatus, pCascadeUpdate)

        if pStatus == NODE_CANCELED and self.status != NODE_DONE:
            for command in self.task.commands:
                command.cancel()
        elif pStatus == NODE_READY and self.status != NODE_RUNNING:
            if any(isRunningStatus(command.status) for command in self.task.commands):
                return False
            for command in self.task.commands:
                command.setReadyStatus()
        elif (NODE_DONE, NODE_ERROR, NODE_BLOCKED, NODE_RUNNING) in pStatus:
            return False
        return True
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/model/node.py/TaskNode.setStatus/swapped operands of `in`