run macro on_run_start in dbt_project.yml problem help

The problem I’m having

I am trying to use on run start command in dbt project.xml

The context of why I’m trying to do this

so that the entire model doesnt run by mistake and below is the project.yml file snippet

Some example code or error messages

I keep getting below error:
Compilation Error in operation project-name-on-run-end-0 (./dbt_project.yml)
‘check_args’ is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with “dbt deps”.

models:
  udp_gscda_distribution:
    
    # Applies to all files under models/example/
    material_movement_details:
      schema: ECC_BHS
      database: UPD_SAP_BRONZE

# A run pre-hook that applies to all runs would go here:
on-run-end:  "{{ check_args() }}"

Any thoughts ?

Can you post the content of your check_args() macro?

{% macro check_select_args() %}
{% if not invocation_args_dict.select %}
{{
exceptions.raise_compiler_error(
“Error: You must provide at least one select argument”
)
}}
{% endif %}
{% endmacro %}