# Setup workflow and scheduled workflow in the same configuration

**URL:** <https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [April 30, 2021, 2:47pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932 "2021-04-30T14:47:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathroule](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mathroule/32/26908_2.png) [@mathroule](https://discuss.circleci.com/u/mathroule)\
**Post date:** [April 30, 2021, 2:47pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/1 "2021-04-30T14:47:41Z")

</div>

Hi,

I’m trying to use setup workflow to handle specific edge case in our build process.

But I’m facing an issue when trying to make it work with scheduled workflow. Basically we need a CircleCI config where we can use scheduled workflow and setup workflow together.

Using this config CircleCI throw this error: “Max number of workflows exceeded.”

```
version: 2.1

setup: true

orbs:
  continuation: circleci/continuation@0.1.2
  node: circleci/node@4.2.1

jobs:
  scheduled_job:
    docker:
      - image: cimg/base:2021.02
    steps:
      - run:
          name: Install npm
          command: npm install

  setup_job:
    executor: continuation/default
    steps:
      - run:
          name: Generate config
          command: |
            ./generate_config > generated_config.yml
      - continuation/continue:
          configuration_path: generated_config.yml

workflows:
  scheduled:
    triggers:
      - schedule:
          cron: '0 0 * * 1'
          filters:
            branches:
              only:
                - master
    jobs:
      - scheduled_job

  setup:
    jobs:
      - setup_job

```

How setup workflow and scheduled job can works together ?

Kind regards

---

<div class="post-metadata">

**Author:** ![mqchau](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mqchau/32/12804_2.png) [@mqchau](https://discuss.circleci.com/u/mqchau)\
**Post date:** [May 4, 2021, 10:12pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/2 "2021-05-04T22:12:31Z")

</div>

I have the same problem as this. I’m waiting for the response too.

---

<div class="post-metadata">

**Author:** ![DrTorte](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drtorte/32/26707_2.png) [@DrTorte](https://discuss.circleci.com/u/DrTorte)\
**Post date:** [May 5, 2021, 2:44am UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/3 "2021-05-05T02:44:10Z")

</div>

This is something that we’re aware of not working. We’re working on getting it fixed up, though don’t have an ETA yet. We’ll keep you posted, though. Thanks!

(Gotta get that staff tag on here, heh, so don’t mind the lack of that.)

---

<div class="post-metadata">

**Author:** ![mqchau](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/mqchau/32/12804_2.png) [@mqchau](https://discuss.circleci.com/u/mqchau)\
**Post date:** [May 26, 2021, 11:04pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/4 "2021-05-26T23:04:30Z")

</div>

Hi, is there any news on this? It’s been 3 weeks. Right now I have to manually trigger scheduled workflow every day. It’s ironic that an automation tool like CircleCI is forcing me to do manual work like this. Please fix this soon.

Ideally I would wish that the scheduled workflows are generated by setup workflow. But if you guys want the original config file `.circleci/config.yml` to define both setup workflow and scheduled workflows, I’m OK too.

---

<div class="post-metadata">

**Author:** ![jeapostrophe](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jeapostrophe/32/27555_2.png) [@jeapostrophe](https://discuss.circleci.com/u/jeapostrophe)\
**Post date:** [June 5, 2021, 10:54pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/5 "2021-06-05T22:54:21Z")

</div>

I am interested in this too. I’ll follow this thread to get notified

---

<div class="post-metadata">

**Author:** ![dragosMC91](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/dragosmc91/32/27561_2.png) [@dragosMC91](https://discuss.circleci.com/u/dragosMC91)\
**Post date:** [June 7, 2021, 9:50am UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/6 "2021-06-07T09:50:20Z")

</div>

Any updates on this ?

---

<div class="post-metadata">

**Author:** ![nbialostosky](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/nbialostosky/32/24962_2.png) [@nbialostosky](https://discuss.circleci.com/u/nbialostosky)\
**Post date:** [June 11, 2021, 5:49pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/7 "2021-06-11T17:49:28Z")

</div>

Hi All!

While we don’t have an ETA on the ability to utilize scheduled workflows in conjunction with dynamic configs, I can say the team is actively working on it. In the meantime, I created the following workaround that should allow you to run scheduled workflows on a dynamic config enabled project:

> [@\[Workaround\] Using scheduled workflows with Dynamic config](https://discuss.circleci.com/t/workaround-using-scheduled-workflows-with-dynamic-config/40344):
>
> [Workaround] Using scheduled workflows with Dynamic config We recently released a feature called [Dynamic config](https://circleci.com/docs/2.0/dynamic-config/) that unlocks a lot of options in using CircleCI. However, at the moment this feature is unable to be used in conjunction with [scheduled workflows](https://circleci.com/docs/2.0/workflows/#scheduling-a-workflow). The team is actively working on addressing this to allow for them to be used together. Since there isn’t a specific date of that release this guide is to help ensure both features can be used at the same time while that is being worked on. …

I hope the above helps in the meantime, I do know the ability to use both these features together is a high priority for the team.

---

<div class="post-metadata">

**Author:** ![vdhpieter](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/vdhpieter/32/28309_2.png) [@vdhpieter](https://discuss.circleci.com/u/vdhpieter)\
**Post date:** [October 6, 2021, 1:18pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/8 "2021-10-06T13:18:33Z")

</div>

Any updates on this? It’s been almost half a year since the original question 🙂

---

<div class="post-metadata">

**Author:** ![nbialostosky](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/nbialostosky/32/24962_2.png) [@nbialostosky](https://discuss.circleci.com/u/nbialostosky)\
**Post date:** [October 13, 2021, 2:02pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/9 "2021-10-13T14:02:00Z")

</div>

@vdhpieter Thanks for following up here!

All updates on this functionality have been communicated on the following Feature Request:

> **[Dynamic config (aka: Setup Jobs) | Cloud Feature Requests | CircleCI Ideas](https://circleci.canny.io/cloud-feature-requests/p/dynamic-config-aka-setup-jobs)**

So I would check that out and add yourself as a vote if you haven’t already as that ensures any updates to the request get automatically sent to you. The most recent update from the PM working on this feature is that we should have some additional details in the coming weeks. I know they are actively working on this, and close, so we will have some updates very soon.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![nbialostosky](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/nbialostosky/32/24962_2.png) [@nbialostosky](https://discuss.circleci.com/u/nbialostosky)\
**Post date:** [October 28, 2021, 6:33pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/10 "2021-10-28T18:33:02Z")

</div>

Hi @vdhpieter and all in this thread!

Just wanted to follow up and let y’all know we just moved ‘Scheduled Pipleines’ into Open Preview:

> [@Scheduled Pipelines Are Here](https://discuss.circleci.com/t/scheduled-pipelines-are-here/41684):
>
> Update 6-Dec-2022: We previously announced that we will be sunsetting scheduled workflows at the end of this year. Since that announcement went live, we’ve been closely tracking your feedback and feature requests, and have decided to postpone the deprecation - no new timelines are set yet. We know that there is more work we need to do in order to improve the existing Scheduled Pipelines experience and also make migration easier for all. We will share updates as we have them. Thanks for your pati…

This feature works with Dynamic Configs/Setup workflows and should allow you to continue to run pipelines on a specific schedule.

Hope the above helps!  
-Nick

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [November 7, 2021, 6:33pm UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/11 "2021-11-07T18:33:22Z")

</div>

Closed on November 7, 2021, 6:33pm UTC

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

---

<div class="post-metadata">

**Author:** ![rosie](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rosie/32/35395_2.png) [@rosie](https://discuss.circleci.com/u/rosie)\
**Post date:** [September 3, 2024, 9:47am UTC](https://discuss.circleci.com/t/setup-workflow-and-scheduled-workflow-in-the-same-configuration/39932/12 "2024-09-03T09:47:01Z")

</div>

Archived on September 3, 2024, 9:47am UTC


