(self, node: UniqueId)
return node in self.in_progress or node in self.queued
Decide if a node is already known (either handed out as a task, or
        in the queue).

        Callers must hold the lock.

        :param str node: The node ID to check
        :returns bool: If the node is in progress/queued.
Decide if a node is already known (either handed out as a task, or
        in the queue).
Decide if a node is already known ( either handed out as a task or in the queue ) .
def _already_known(self, node: UniqueId) -> bool:
        """Decide if a node is already known (either handed out as a task, or
        in the queue).

        Callers must hold the lock.

        :param str node: The node ID to check
        :returns bool: If the node is in progress/queued.
        """
        return node in self.in_progress or node in self.queued
def _already_known ( self , node : UniqueId ) -> bool : return node in self . in_progress or node in self . queued