Bubble Docs
Comment on page

Recurring workflows

This section covers recurring client-side workflows
If you need to run a workflow multiple times with a set interval in-between, you an use a Do every 5 seconds event.
The 5 is flexible, so you can set it to any number of seconds that you want, including decimals, and the workflow will keep running until you stop or the page is closed.
Keep in mind that continuously repeating a a workflow can potentially slow down your app (depending on what the workflow is doing), especially as your app scales with more users.
We recommend that you mostly use this event for client-side actions, and that you do careful testing to see how it affects your app performance-wise if you are using server-side actions like database operations.
If you want to run a workflow continuously even if the page is closed, you may consider using recursive API workflows instead. Note that they can only run server-side actions.

Other ways to learn