def METHOD_NAME(ctx):
    local_log_filename = "{}_{}_{}.log".format(os.environ['conf_resource'], os.environ['edge_user_name'], os.environ['request_id'])
    local_log_filepath = "/logs/" + os.environ['conf_resource'] + "/" + local_log_filename
    logging.basicConfig(format='%(levelname)-8s [%(asctime)s]  %(message)s',
                        level=logging.DEBUG,
                        filename=local_log_filepath)
    try:
        subprocess.run("~/scripts/{}.py".format('dataengine_terminate'), shell=True, check=True)
    except Exception as err:
        traceback.print_exc()
        append_result("Failed terminating Data Engine.", str(err))
        sys.exit(1)