# Run workflow in sequence continually until condition is met

**URL:** <https://forum.bubble.io/t/run-workflow-in-sequence-continually-until-condition-is-met/131213>\
**Category:** App Organization\
**Created:** [January 18, 2021, 10:01pm UTC](https://forum.bubble.io/t/run-workflow-in-sequence-continually-until-condition-is-met/131213 "2021-01-18T22:01:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bailey](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bailey/32/79770_2.png) [@bailey](https://forum.bubble.io/u/bailey)\
**Post date:** [January 18, 2021, 10:01pm UTC](https://forum.bubble.io/t/run-workflow-in-sequence-continually-until-condition-is-met/131213/1 "2021-01-18T22:01:28Z")

</div>

Hi,

What is the best solution to run a backend workflow in a set sequence where one workflow must be completed successfully before the next one starts and where each must be completed in the set sequence?

Example run the following workflow sequence in this order after receiving a webhook notification to an endpoint:

1. run separate api to get other information
2. create account
3. generate coupons
4. run coupon api
5. allocate coupons

Where it has to run in this sequence and one workflow must be completed before the next workflow begins (otherwise it keeps running the previous workflow) until the condition is true.

Another example of continually running a workflow until a condition is met:

API example: one of our API’s has a limit of 40 calls per minute. When this amount is met I won’t be able to make any more API calls until the next minute. I can put a yes/no field in the table to indicate when an API is processed for the line and have a only when condition to process lines that the condition meets. How do I make it continually keep running the workflow until the condition is met for every database entry?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![andrew.mcdonagh](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@andrew.mcdonagh](https://forum.bubble.io/u/andrew.mcdonagh)\
**Post date:** [January 19, 2021, 12:53am UTC](https://forum.bubble.io/t/run-workflow-in-sequence-continually-until-condition-is-met/131213/2 "2021-01-19T00:53:11Z")

</div>

This might help

> [@\[New Feature\] Scheduling API workflows can now be done recursively](http://forum.bubble.io/t/new-feature-scheduling-api-workflows-can-now-be-done-recursively/37372):
>
> Hi all, We had previously restricted scheduled API workflows from scheduling themselves (or scheduling another workflow that then scheduled itself). This restriction is now removed. Recursive scheduled workflows can be useful in situations where you are processing an unknown quantity of data that might be quite large. For instance, the following workflow will make sure every Thing in your database has been processed within 7 days: Processing data this way is generall…
