def METHOD_NAME(
    self, execution_cursor: ExecutionCursor
) -> Optional[int]:
    yield  # let the query execute first
    try:
        if self._lineage_logger and sys.version_info < (3, 10):
            # calculate and send lineage data only if there is a registered lineage logger
            # at the time of writing SystemError occurs "PY_SSIZE_T_CLEAN macro must be defined for '#' formats"
            # when trying to calculate lineage information, TODO resolve the above error for python 3.10
            hive_cursor = cast(HiveServer2Cursor, execution_cursor)
            lineage_data = self._get_lineage_data(hive_cursor)
            if (
                lineage_data
            ):  # some queries do not have data lineage - select 1, create table, compute stats, etc
                self._lineage_logger.send(lineage_data)
    # do not stop job execution if error occurs during lineage processing
    except Exception:
        log.warning(
            "Error occurred during lineage calculation. No lineage information will be generated."
            " Job execution will continue",
            exc_info=True,
        )