# build group of models at different runtimes

**URL:** <https://discourse.getdbt.com/t/build-group-of-models-at-different-runtimes/10068>\
**Category:** Help\
**Created:** [September 26, 2023, 6:26am UTC](https://discourse.getdbt.com/t/build-group-of-models-at-different-runtimes/10068 "2023-09-26T06:26:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greenglass](https://avatars.discourse-cdn.com/v4/letter/g/d2c977/32.png) [@greenglass](https://discourse.getdbt.com/u/greenglass)\
**Post date:** [September 26, 2023, 6:26am UTC](https://discourse.getdbt.com/t/build-group-of-models-at-different-runtimes/10068/1 "2023-09-26T06:26:06Z")

</div>

## The problem I’m having

Some of my models need to be run on a daily basis and some on a monthly basis

## What I have tried

I can think of different possibilities

1. create different projects repositories → For me not an option
2. create different execute commands with different triggers. Example  
dbt build my\_daily\_models  
dbt build my\_monthly\_models

The last option sounds good but sounds time consuming since I would have to adapt the run command every time I create or delete models.

What would be the best option ?

---

<div class="post-metadata">

**Author:** ![domzae](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/domzae/32/3012_2.png) [@domzae](https://discourse.getdbt.com/u/domzae)\
**Post date:** [September 26, 2023, 7:12am UTC](https://discourse.getdbt.com/t/build-group-of-models-at-different-runtimes/10068/2 "2023-09-26T07:12:07Z")

</div>

We solve this by using [tags](https://docs.getdbt.com/reference/resource-configs/tags).  
We set tags on our marts including either “hourly”, “daily”, “weekly” or “monthly”

```auto
{{ config(
    tags=["daily"]
) }}

```

In your orchestrator, trigger the relevant models with the selector:

```auto
dbt build -s +tag:daily

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [October 3, 2023, 7:12am UTC](https://discourse.getdbt.com/t/build-group-of-models-at-different-runtimes/10068/3 "2023-10-03T07:12:08Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
