How to dynamically skip a model run

U can use enabled flag to enable aor disable a model.
It accepts true/flase but try calling a macro and return true/false based on ur logic.

dbt_project.yml
models:
  model_folder:
      model_name
           enabled: "{{ enable_model() }}"
enable_model.sql

{% macro enable_model()%}
logic
return true
{%end macro %}