# Does dbt cloud support more than one job dependency

**URL:** <https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980>\
**Category:** Help\
**Tags:** dbt-cloud\
**Created:** [November 15, 2024, 1:56am UTC](https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980 "2024-11-15T01:56:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karpagamb](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@karpagamb](https://discourse.getdbt.com/u/karpagamb)\
**Post date:** [November 15, 2024, 1:56am UTC](https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980/1 "2024-11-15T01:56:47Z")

</div>

I have a scheduling question regarding dbt Cloud. I need to set up Job AB to run once a week on Wednesdays, but only after Job A has completed. For context, Job A runs every day. I’ve tried using the available Trigger options, but this results in duplicate runs. How can I accomplish this without adding logic to the actual model? I tried to add a macro that would check for the day of the week as command 1 and added the model refresh as command 2 but this did not really do anything. Any insight is appreciated

Job AB set up

```auto
Command 1 dbt run-operation check_wednesday
Command 2 dbt run --select tag:wednesday

```

---

<div class="post-metadata">

**Author:** ![lchien063](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/lchien063/32/3249_2.png) [@lchien063](https://discourse.getdbt.com/u/lchien063)\
**Post date:** [November 15, 2024, 2:18am UTC](https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980/2 "2024-11-15T02:18:28Z")

</div>

Hi, can you be more specific? what does `check_wednesday` do?

If it only checks if the current date is Wednesday, why don’t you just run job B instead of both?

---

<div class="post-metadata">

**Author:** ![karpagamb](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@karpagamb](https://discourse.getdbt.com/u/karpagamb)\
**Post date:** [November 15, 2024, 2:24am UTC](https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980/3 "2024-11-15T02:24:52Z")

</div>

`check_wednesday` macro checks if today is Wednesday and yes we want the Job AB to run on Wednesday after Job A finishes . Job AB is tied to models that only need refresh every Wednesday.

---

<div class="post-metadata">

**Author:** ![lchien063](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/lchien063/32/3249_2.png) [@lchien063](https://discourse.getdbt.com/u/lchien063)\
**Post date:** [November 15, 2024, 2:35am UTC](https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980/4 "2024-11-15T02:35:22Z")

</div>

So the models in Job B are downstream of Job A models right? And both only run on Wednesday?

---

<div class="post-metadata">

**Author:** ![karpagamb](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@karpagamb](https://discourse.getdbt.com/u/karpagamb)\
**Post date:** [November 15, 2024, 3:30am UTC](https://discourse.getdbt.com/t/does-dbt-cloud-support-more-than-one-job-dependency/16980/5 "2024-11-15T03:30:35Z")

</div>

Job B models are dependent on the outputs from Job A. While Job A runs daily, the models associated with Job B only need to be refreshed every Wednesday.
