This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PDBDebugHook: | |
"""A hook class for creating a post mortem debugging with the PDB debugger | |
whenever an error is triggered within a node. The local scope from when the | |
exception occured is available within this debugging session. | |
""" | |
@hook_impl | |
def on_node_error(self): | |
_, _, traceback_object = sys.exc_info() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from kedro.framework.hooks import hook_impl | |
from kedro.io import MemoryDataSet | |
from kedro.io.core import get_filepath_str | |
class SkipHook: | |
def __init__(self): | |
self.logger = logging.getLogger(__name__) |