Skip to main content

Running scripts not associated with a dbt model

Typically a fal script is associated with a dbt model, this is how the context variable is populated. However you may want to invoke scripts independent of a dbt model as well. This can be achieved by adding a script configuration similar to meta for models, but in the schema.yml top level:


- global/
- global/

These will happen at the beginning and end of any fal run, no matter which models are selected, since these are pre and post hooks of running fal.

The before part will run before all model scripts and the after will run after all model scripts.