(self, result)
Mark the result as completed, insert the `CompileResultNode` into
        the manifest, and mark any descendants (potentially with a 'cause' if
        the result was an ephemeral model) as skipped.
Mark the result as completed, insert the `CompileResultNode` into
        the manifest, and mark any descendants (potentially with a 'cause' if
        the result was an ephemeral model) as skipped.
Mark the result as completed insert the CompileResultNode into the manifest and mark any descendants ( potentially with a cause if the result was an ephemeral model ) as skipped .
def _handle_result(self, result):
        """Mark the result as completed, insert the `CompileResultNode` into
        the manifest, and mark any descendants (potentially with a 'cause' if
        the result was an ephemeral model) as skipped.
        """
        is_ephemeral = result.node.is_ephemeral_model
        if not is_ephemeral:
            self.node_results.append(result)

        node = result.node

        if self.manifest is None:
            raise InternalException('manifest was None in _handle_result')

        if isinstance(node, ParsedSourceDefinition):
            self.manifest.update_source(node)
        else:
            self.manifest.update_node(node)

        if result.status in self.MARK_DEPENDENT_ERRORS_STATUSES:
            if is_ephemeral:
                cause = result
            else:
                cause = None
            self._mark_dependent_errors(node.unique_id, result, cause)
def _handle_result ( self , result ) : is_ephemeral = result . node . is_ephemeral_model if not is_ephemeral : self . node_results . append ( result ) node = result . node if self . manifest is None : raise InternalException ( 'manifest was None in _handle_result' ) if isinstance ( node , ParsedSourceDefinition ) : self . manifest . update_source ( node ) else : self . manifest . update_node ( node ) if result . status in self . MARK_DEPENDENT_ERRORS_STATUSES : if is_ephemeral : cause = result else : cause = None self . _mark_dependent_errors ( node . unique_id , result , cause )