def run_before_snapshot()

in awslambdaric/lambda_runtime_hooks_runner.py [0:0]


def run_before_snapshot():
    before_snapshot_callables = get_before_snapshot()
    while before_snapshot_callables:
        # Using pop as before checkpoint callables are executed in the reverse order of their registration
        func, args, kwargs = before_snapshot_callables.pop()
        func(*args, **kwargs)