def METHOD_NAME(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