dbt mysql/maria-db does not read schema.yml file

The problem I’m having

We have a dbt project which runs on Mariadb (v 10.11.10). We define a Schema.yml file which we use to generate PRIMARY KEYs (PKs). The Schema.yml file itself is quite large (6k lines approx.) and after a while, when I run “dbt run” it just does not consider anything in the Schema.yml file.

This does not happen when I run the model in isolation “dbt run -s model_name”.

The context of why I’m trying to do this

We require PKs for performance reasons.

What I’ve already tried

I’ve tried breaking up the Schema.yml file into two files. In this case, dbt run read only one of the files and skipped the other.

Some example code or error messages

No code but not sure if someone else has experienced this before.